(svn r23632) -Add: GSCompanyMode, to change company in GameScripts
This commit is contained in:
@@ -180,6 +180,27 @@ protected:
|
||||
*/
|
||||
static bool GetAllowDoCommand();
|
||||
|
||||
/**
|
||||
* Set the current company to execute commands for or request
|
||||
* information about.
|
||||
* @param company The new company.
|
||||
*/
|
||||
static void SetCompany(CompanyID company);
|
||||
|
||||
/**
|
||||
* Get the current company we are executing commands for or
|
||||
* requesting information about.
|
||||
* @return The current company.
|
||||
*/
|
||||
static CompanyID GetCompany();
|
||||
|
||||
/**
|
||||
* Get the root company, the company that the script really
|
||||
* runs under / for.
|
||||
* @return The root company.
|
||||
*/
|
||||
static CompanyID GetRootCompany();
|
||||
|
||||
/**
|
||||
* Set the cost of the last command.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user