NML:Canals
From GRFSpecs
Revision as of 21:21, 14 October 2011 by Planetmaker (talk | contribs) (add variables and callbacks)
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
- common props | vars | CBs
- train | roadveh | ship | aircr props
- common variables
- industry props | vars | CBs
- tile props | vars | CBs
- airport props | vars | CBs
- tile props | vars | CBs
Canal properties
item (FEAT_CANAL, item_name, id) { ... }
name | value range | comment |
---|---|---|
graphic_flags | bitmask(flags) | only possible value other than undefined: WATERFEATURE_ALTERNATIVE_SPRITES
|
graphic_flags
the WATERFEATURE_ALTERNATIVE_SPRITES
defines the type of spritesets used by the single ids
of canals (compare also nfo specs)
Canal variables
name | value range | comment |
---|---|---|
tile_height | 0 .. 128 | tile height in steps of 8 |
terrain_type | TILETYPE_XX | TILETYPE_NORMAL, TILETYPE_DESERT, TILETYPE_RAIN_FOREST, TILETYPE_SNOW |
random_bits | 0 .. 255 | random bits of that tile |
Canal callbacks
callback | return value | comment |
---|---|---|
default | spriteset | graphics for the canal id |
sprite_offset | numeric offset into the spriteset for the canal id |