Common return value for all commands.
Container for an encoded string, created by GetEncodedString.
Types related to commands.
@ OtherManagement
Renaming stuff, changing company colours, placing signs, etc.
@ Deity
the command may be executed by COMPANY_DEITY
@ StrCtrl
the command's string may contain control strings
@ CreateGoal
create a new goal
@ RemoveGoal
remove a goal
@ GoalQuestion
ask a goal related question
@ SetGoalDestination
update goal destination of a goal
@ GoalQuestionAnswer
answer(s) to Commands::GoalQuestion
@ SetGoalText
update goal text of a goal
@ SetGoalProgress
update goal progress text of a goal
@ SetGoalCompleted
update goal completed status of a goal
CommandCost CmdGoalQuestion(DoCommandFlags flags, uint16_t uniqueid, uint32_t target, bool is_client, uint32_t button_mask, GoalQuestionType type, const EncodedString &text)
Ask a goal related question.
CommandCost CmdGoalQuestionAnswer(DoCommandFlags flags, uint16_t uniqueid, uint8_t button)
Reply to a goal question.
CommandCost CmdSetGoalProgress(DoCommandFlags flags, GoalID goal, const EncodedString &text)
Update progress text of a goal.
CommandCost CmdRemoveGoal(DoCommandFlags flags, GoalID goal)
Remove a goal.
std::tuple< CommandCost, GoalID > CmdCreateGoal(DoCommandFlags flags, CompanyID company, GoalType type, GoalTypeID dest, const EncodedString &text)
Create a new goal.
CommandCost CmdSetGoalText(DoCommandFlags flags, GoalID goal, const EncodedString &text)
Update goal text of a goal.
CommandCost CmdSetGoalDestination(DoCommandFlags flags, GoalID goal, GoalType type, GoalTypeID dest)
Update goal destination of a goal.
CommandCost CmdSetGoalCompleted(DoCommandFlags flags, GoalID goal, bool completed)
Update completed state of a goal.
Basic types related to goals.
GoalType
Types of goal destinations.
uint32_t GoalTypeID
Contains either tile, industry ID, town ID, company ID, or story page ID.