Difference between revisions of "NML:Canals"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (ids should get a separate section) |
Planetmaker (talk | contribs) (add variables and callbacks) |
||
| Line 16: | Line 16: | ||
=== graphic_flags === |
=== graphic_flags === |
||
| − | the <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> defines the type of spritesets used by the single <code style="color:darkgreen">ids</code> of canals (compare also [[Action3/Canals#id| nfo specs]]) |
+ | the <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> defines the type of spritesets used by the single <code style="color:darkgreen">ids</code> of canals (compare also [[Action3/Canals#id| nfo specs]]) |
| + | == Canal variables == |
||
| + | |||
| + | {| class="t" |
||
| + | ! 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 == |
||
| + | |||
| + | {| class="t" |
||
| + | ! callback |
||
| + | ! return value |
||
| + | ! comment |
||
| + | |- |
||
| + | |default |
||
| + | |spriteset |
||
| + | |graphics for the canal id |
||
| + | |- |
||
| + | |sprite_offset |
||
| + | | |
||
| + | |numeric offset into the spriteset for the canal id |
||
| + | |} |
||
== Canal ids == |
== Canal ids == |
||
Revision as of 21:21, 14 October 2011
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Roadstops, 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 |