Common return value for all commands.
Types related to commands.
@ CompanySetting
Changing settings related to a company.
@ ServerSetting
Pausing/removing companies/server settings.
@ NoEst
the command is never estimated.
@ Server
the command can only be initiated by the server
EnumBitSet< CommandFlag, uint16_t > CommandFlags
Bitset of CommandFlag elements.
@ ChangeSetting
change a setting
@ ChangeCompanySetting
change a company setting
EnumBitSet< DoCommandFlag, uint16_t > DoCommandFlags
Bitset of DoCommandFlag elements.
CommandCost CmdChangeCompanySetting(DoCommandFlags flags, const std::string &name, int32_t value)
Change one of the per-company settings.
CommandCost CmdChangeSetting(DoCommandFlags flags, const std::string &name, int32_t value)
Network-safe changing of settings (server-only).
CommandCost CmdChangeCompanySetting(DoCommandFlags flags, const std::string &name, int32_t value)
Change one of the per-company settings.
CommandCost CmdChangeSetting(DoCommandFlags flags, const std::string &name, int32_t value)
Network-safe changing of settings (server-only).