Grid Feature - atom description

From Nebuchadnezzar Modding Wiki
Jump to navigation Jump to search

<- back to all classes

General description

  • Grid Feature atoms represent additional properties of Grid atoms which can be referenced by buildings to limit construction only on tiles with specific Surface or Grid.
  • For example Grid Feature can represent water or metal deposits.

Properties description

Name Type Default value /
Obligatory
Description
basic_ground_feature bool false Feature representing basic ground.
basic_water_feature bool false Feature representing basic water.

Properties in detail

features

  • Each Grid can support multiple "features".
  • These features then describe additional properties.

surface_representant

  • Sometimes you can have multiple Grid atoms which are different is some properties, but which do not influence which Surface should be used with them. For example soil without water power and soil with water power in base mod.
  • In such cases is best to choose one of them as a representant because it reduces number of required surface atoms.

Example

-- ground
atom ('gf.G',
{
    basic_ground_feature = true,
})

-- water
atom ('gf.W',
{
    basic_water_feature = true,
})

-- fertile
atom ('gf.F',
{})

-- copper
atom ('gf.Cu',
{})

-- gold
atom ('gf.Au',
{})

-- stone
atom ('gf.Si',
{})

-- all
atom ('gf.A',
{})