Difference between revisions of "NML:Canals"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (→Canal ids: meaning of water sprites) |
|||
Line 26: | Line 26: | ||
|- |
|- |
||
|tile_height |
|tile_height |
||
− | |0 .. |
+ | |0 .. max_tile_height |
− | | |
+ | | {{nml|0.2}} Tile height in pixels (=tiles * 8). |
+ | {{nml|0.3}} Tile height in tiles. |
||
|- |
|- |
||
|terrain_type |
|terrain_type |
Revision as of 15:37, 14 December 2011
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 .. max_tile_height | NML 0.2 Tile height in pixels (=tiles * 8).
NML 0.3 Tile height in tiles. |
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 |