From cc3f42794d134b9f4b6c7efecb07d4b3366887c1 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 21:05:25 +0000 Subject: (svn r23632) -Add: GSCompanyMode, to change company in GameScripts --- src/script/script_storage.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/script/script_storage.hpp') diff --git a/src/script/script_storage.hpp b/src/script/script_storage.hpp index 0af56b2b4..79de2de8f 100644 --- a/src/script/script_storage.hpp +++ b/src/script/script_storage.hpp @@ -34,6 +34,8 @@ friend class ScriptObject; private: ScriptModeProc *mode; ///< The current build mode we are int. class ScriptObject *mode_instance; ///< The instance belonging to the current build mode. + CompanyID root_company; ///< The root company, the company that the script really belongs to. + CompanyID company; ///< The current company. uint delay; ///< The ticks of delay each DoCommand has. bool allow_do_command; ///< Is the usage of DoCommands restricted? @@ -60,6 +62,8 @@ public: ScriptStorage() : mode (NULL), mode_instance (NULL), + root_company (INVALID_OWNER), + company (INVALID_OWNER), delay (1), allow_do_command (true), /* costs (can't be set) */ -- cgit v1.2.3-54-g00ecf