Features

In the context of NML, a 'feature' is a type of in-game object. Examples include trains, houses and stations. Many language structures require specifying a feature. This can be done as a number, but the code may become more readable if named constants are used. The following features are available, with their corresponding identifier:

Feature Identifier Numerical value
Trains FEAT_TRAINS 0x00
Road vehicles FEAT_ROADVEHS 0x01
Ships FEAT_SHIPS 0x02
Planes FEAT_PLANES 0x03
Rail stations FEAT_STATIONS 0x04
Canals FEAT_CANALS 0x05
Bridges FEAT_BRIDGES 0x06
Houses FEAT_HOUSES 0x07
Global variables FEAT_GLOBALVARS 0x08
Industry tiles FEAT_INDUSTRYTILES 0x09
Industries FEAT_INDUSTRIES 0x0A
Cargos FEAT_CARGOS 0x0B
Sound effects FEAT_SOUNDEFFECTS 0x0C
Airports FEAT_AIRPORTS 0x0D
Signals FEAT_SIGNALS 0x0E
Objects FEAT_OBJECTS 0x0F
Rail types FEAT_RAILTYPES 0x10
Airport tiles FEAT_AIRPORTTILES 0x11