NML:Canals: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Planetmaker (talk | contribs) |
|||
| Line 31: | Line 31: | ||
|- |
|- |
||
|terrain_type |
|terrain_type |
||
| TILETYPE_XXX |
|||
| TILETYPE_XX |
|||
| |
|||
| TILETYPE_NORMAL, TILETYPE_DESERT, TILETYPE_RAIN_FOREST, TILETYPE_SNOW |
|||
;TILETYPE_NORMAL |
|||
:Normal grass in all climates |
|||
;TILETYPE_DESERT |
|||
;TILETYPE_RAIN_FOREST |
|||
:In tropical climate only: some tiles in the mountains, distant from desert and sea |
|||
;TILETYPE_SNOW |
|||
|- |
|- |
||
|random_bits |
|random_bits |
||
Revision as of 10:08, 22 July 2012
Vehicles, Stations, Roadstops, Canals, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Bridges, Badges, 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_XXX |
|
| 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 |