summaryrefslogtreecommitdiff
path: root/src/goal_cmd.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-20 22:30:56 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commite6e69d528921ab731c4c38ee708ff31b7055fd27 (patch)
tree25e19470a3b2179c7c9c9b76cdc4dc7e2906dbf4 /src/goal_cmd.h
parent1a42a8a5d50e917a3b7158feadc70205cf912cba (diff)
downloadopenttd-e6e69d528921ab731c4c38ee708ff31b7055fd27.tar.xz
Codechange: Un-bitstuff goal and story page commands.
Diffstat (limited to 'src/goal_cmd.h')
-rw-r--r--src/goal_cmd.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/goal_cmd.h b/src/goal_cmd.h
index 3b047f11a..5c3e4954f 100644
--- a/src/goal_cmd.h
+++ b/src/goal_cmd.h
@@ -11,14 +11,16 @@
#define GOAL_CMD_H
#include "command_type.h"
+#include "command_type.h"
+#include "goal_type.h"
-CommandProc CmdCreateGoal;
-CommandProc CmdRemoveGoal;
-CommandProc CmdSetGoalText;
-CommandProc CmdSetGoalProgress;
-CommandProc CmdSetGoalCompleted;
-CommandProc CmdGoalQuestion;
-CommandProc CmdGoalQuestionAnswer;
+CommandCost CmdCreateGoal(DoCommandFlag flags, CompanyID company, GoalType type, GoalTypeID dest, const std::string &text);
+CommandCost CmdRemoveGoal(DoCommandFlag flags, GoalID goal);
+CommandCost CmdSetGoalText(DoCommandFlag flags, GoalID goal, const std::string &text);
+CommandCost CmdSetGoalProgress(DoCommandFlag flags, GoalID goal, const std::string &text);
+CommandCost CmdSetGoalCompleted(DoCommandFlag flags, GoalID goal, bool completed);
+CommandCost CmdGoalQuestion(DoCommandFlag flags, uint16 uniqueid, uint16 target, bool is_client, uint32 button_mask, GoalQuestionType type, const std::string &text);
+CommandCost CmdGoalQuestionAnswer(DoCommandFlag flags, uint16 uniqueid, uint8 button);
DEF_CMD_TRAIT(CMD_CREATE_GOAL, CmdCreateGoal, CMD_DEITY | CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT)
DEF_CMD_TRAIT(CMD_REMOVE_GOAL, CmdRemoveGoal, CMD_DEITY, CMDT_OTHER_MANAGEMENT)