23template <
typename Tcont,
typename Titer>
26 return buffer << source.
id << source.
type;
31 return buffer >> source.
id >> source.
type;
Types related to cargoes...
uint8_t CargoType
Cargo slots to indicate a cargo type within a game.
Common return value for all commands.
Endian-aware buffer adapter that always reads values in little endian order.
Endian-aware buffer adapter that always writes values in little endian order.
Types related to commands.
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
@ Deity
the command may be executed by COMPANY_DEITY
@ CMD_CREATE_SUBSIDY
create a new subsidy
Type for the source of cargo.
A location from where cargo can come from (or go to).
SourceID id
Index of industry/town/HQ, Source::Invalid if unknown/invalid.
SourceType type
Type of source_id.
CommandCost CmdCreateSubsidy(DoCommandFlags flags, CargoType cargo_type, Source src, Source dst)
Create a new subsidy.