Difference between revisions of "NML:Canals"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (Add: dike_map variable and its values as of NML 2074) |
(→Canal properties: FEAT_CANAL should be FEAT_CANALS) |
||
Line 60: | Line 60: | ||
==Canal properties== |
==Canal properties== |
||
− | item ( |
+ | item (FEAT_CANALS, item_name, id) { ... } |
{| class="t" |
{| class="t" |
||
Line 71: | Line 71: | ||
| There is currently only one possible bit: <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> |
| There is currently only one possible bit: <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> |
||
|} |
|} |
||
− | |||
== Canal variables == |
== Canal variables == |
Revision as of 20:41, 11 January 2018
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 ids
The used item ID defines what sprites this item provides. Item IDs should be picked from the following table (WF_XXX).
The 'normal sprites' column contains the amount of sprites that should be provided for this feature. If the appropriate bit in the graphics_flags-property (see below) the amount of sprites stated in the 'alternative sprites' column must be provided instead.
Canal properties
item (FEAT_CANALS, item_name, id) { ... }
name | value range | comment |
---|---|---|
graphic_flags | bitmask(flags) | There is currently only one possible bit: WATERFEATURE_ALTERNATIVE_SPRITES
|
Canal variables
Canal callbacks
callback | return value | comment |
---|---|---|
default | spriteset | graphics for the canal id |
sprite_offset | numeric offset into the spriteset for the canal id |