summaryrefslogtreecommitdiff
path: root/src/industry_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/industry_cmd.h')
-rw-r--r--src/industry_cmd.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/industry_cmd.h b/src/industry_cmd.h
index 150b59da9..b4d965f64 100644
--- a/src/industry_cmd.h
+++ b/src/industry_cmd.h
@@ -11,9 +11,14 @@
#define INDUSTRY_CMD_H
#include "command_type.h"
+#include "company_type.h"
+#include "industry_type.h"
-CommandProc CmdBuildIndustry;
-CommandProc CmdIndustryCtrl;
+enum class IndustryAction : byte;
+enum IndustryControlFlags : byte;
+
+CommandCost CmdBuildIndustry(DoCommandFlag flags, TileIndex tile, IndustryType it, uint32 first_layout, bool fund, uint32 seed);
+CommandCost CmdIndustryCtrl(DoCommandFlag flags, IndustryID ind_id, IndustryAction action, IndustryControlFlags ctlflags, Owner company_id, const std::string &text);
DEF_CMD_TRAIT(CMD_BUILD_INDUSTRY, CmdBuildIndustry, CMD_DEITY, CMDT_LANDSCAPE_CONSTRUCTION)
DEF_CMD_TRAIT(CMD_INDUSTRY_CTRL, CmdIndustryCtrl, CMD_DEITY | CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT)