Difference between revisions of "NML:Canals"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (add variables and callbacks) |
Planetmaker (talk | contribs) (→Canal ids: meaning of water sprites) |
||
Line 62: | Line 62: | ||
|- |
|- |
||
|WF_WATERCLIFFS |
|WF_WATERCLIFFS |
||
− | |{{ottdp|1.1|2.6|ottdrev=r20352|ttdprev=r1573}} water for |
+ | |{{ottdp|1.1|2.6|ottdrev=r20352|ttdprev=r1573}} water for canals / locks |
|4 slope sprites |
|4 slope sprites |
||
|1 flat ground sprite followed by 4 slope sprites |
|1 flat ground sprite followed by 4 slope sprites |
||
Line 87: | Line 87: | ||
|- |
|- |
||
|WF_RIVER_SLOPE |
|WF_RIVER_SLOPE |
||
− | |{{ottdp|1.1|2.6|ottdrev=r20352|ttdprev=r1573}} River |
+ | |{{ottdp|1.1|2.6|ottdrev=r20352|ttdprev=r1573}} River water |
|4 |
|4 |
||
|1 flat ground sprite followed by 4 slope sprites |
|1 flat ground sprite followed by 4 slope sprites |
Revision as of 22:09, 2 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 .. 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 |