Callback: Decide cargo acceptance
From GRFSpecs
Jump to navigationJump to search
Decide cargo acceptance (2B)
Called to get the amount of acceptance for the industry tile. The cargo types are defined by properties 0A..0C, or callback 2C if enabled. The callback must return a 15-bit value in the following format:
Bit range | Meaning |
---|---|
0..3 | Acceptance for the first cargo (0..8) |
4..7 | Acceptance for the second cargo (0..8) |
8..11 | Acceptance for the third cargo (0..8) |
If the callback fails, properties 0A..0C are used instead.