Action 0 - Properties for canals / rivers
Defining properties of canals and rivers
Properties
Number | Version | Size | Description |
08 | 2.6 r1560, OTTD r20353 | B | Canals / Rivers Callback flags, see below |
|
09 | 2.6 r1573, OTTD r20352 | B | Canals / Rivers Graphic flags |
Description
Canals callback (08)
For canals and rivers, the following
callbacks can be defined by setting the corresponding bit in property 08:
Bit | Value | Variable 0C value | Callback
|
0 | 1 | 0x147 | Enable add sprite offset callback* |
* Please note that not all feature IDs support this callback
Graphic flags (09)
Description of provided format and features in the sprite block.
If bit 0 of graphic flags is enabled, the way sprites and the count of sprites will change.
ID | Description | Sprites | Sprites when Bit 0 is set
|
00 | Watercliffs | 4 slope sprites | 1 flat ground sprite followed by 4 slope sprites
|
01 | Locks | 24 | undefined
|
02 | Dikes | 12 | undefined
|
03 | Icons | 1 | undefined
|
04 | Flat docks | 4 | undefined
|
05 | River Slope | 4 | 1 flat ground sprite followed by 4 slope sprites
|
06 | River waterside | 12*5 (Last 4 for slopes) | undefined
|
07 | River GUI | 2 | undefined |
Note:
It's not allowed to set bit 0 for undefined entries!