10 #ifndef INDUSTRY_CMD_H
11 #define INDUSTRY_CMD_H
Common return value for all commands.
Types related to commands.
@ CMDT_LANDSCAPE_CONSTRUCTION
Construction and destruction of objects on the map.
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
DoCommandFlag
List of flags for a command.
Commands
List of commands.
@ CMD_INDUSTRY_SET_FLAGS
change industry control flags
@ CMD_INDUSTRY_SET_TEXT
change additional text for the industry
@ CMD_INDUSTRY_SET_EXCLUSIVITY
change industry exclusive consumer/supplier
@ CMD_INDUSTRY_SET_PRODUCTION
change industry production
@ CMD_BUILD_INDUSTRY
build a new industry
@ CMD_STR_CTRL
the command's string may contain control strings
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
Types related to companies.
Owner
Enum for all companies/owners.
IndustryControlFlags
Flags to control/override the behaviour of an industry.
CommandCost CmdIndustrySetText(DoCommandFlag flags, IndustryID ind_id, const std::string &text)
Change additional industry text.
CommandCost CmdIndustrySetExclusivity(DoCommandFlag flags, IndustryID ind_id, Owner company_id, bool consumer)
Change exclusive consumer or supplier for the industry.
void CcBuildIndustry(Commands cmd, const CommandCost &result, TileIndex tile, IndustryType indtype, uint32_t, bool, uint32_t)
Command callback.
CommandCost CmdIndustrySetProduction(DoCommandFlag flags, IndustryID ind_id, uint8_t prod_level, bool show_news, const std::string &text)
Set industry production.
CommandCost CmdIndustrySetFlags(DoCommandFlag flags, IndustryID ind_id, IndustryControlFlags ctlflags)
Set industry control flags.
enum IndustryControlFlags uint8_t CommandCost CmdBuildIndustry(DoCommandFlag flags, TileIndex tile, IndustryType it, uint32_t first_layout, bool fund, uint32_t seed)
Build/Fund an industry.
Types related to the industry.