Callback: Cargo acceptance

From GRFSpecs
Jump to navigationJump to search

Cargo acceptance (1F)

Called to decide what the building tile can accept. Uses 15 return bits. The returned word should have the layout of Sgmp, where the letters mean the following:

Symbol Meaning
S 1 if the building should accept food/fizzy drinks instead of goods
g If S is 1, the food acceptance in 1/8 units
If S is 0, the goods acceptance in 1/8 units
m mail acceptance in 1/8 units
p passenger acceptance in 1/8 units

So, for example, giving the ID 8426h means "4/8 goods, 2/8 mail, 6/8 passenger", while giving the ID 9205 means "2/8 food, 5/8 passenger".

If property 1E and/or callback 2A is used, the meaning changes slightly. In this case, p means the acceptance of the first cargo type given, m means the same for the second cargo type, and g is the same for the third cargo type, while S must be zero.