From 3a535690d4e9aaa896a062e7b5b5454b1b07ac47 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 21:00:32 +0000 Subject: (svn r23623) -Add: allow bi-directional communication with the AdminPort and GameScript --- src/game/game_instance.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game') diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp index e5b3bf08e..872c4829c 100644 --- a/src/game/game_instance.cpp +++ b/src/game/game_instance.cpp @@ -24,6 +24,7 @@ /* Convert all Game related classes to Squirrel data. * Note: this line is a marker in squirrel_export.sh. Do not change! */ #include "../script/api/game/game_accounting.hpp.sq" +#include "../script/api/game/game_admin.hpp.sq" #include "../script/api/game/game_airport.hpp.sq" #include "../script/api/game/game_base.hpp.sq" #include "../script/api/game/game_basestation.hpp.sq" @@ -92,6 +93,7 @@ void GameInstance::RegisterAPI() /* Register all classes */ SQGSList_Register(this->engine); SQGSAccounting_Register(this->engine); + SQGSAdmin_Register(this->engine); SQGSAirport_Register(this->engine); SQGSBase_Register(this->engine); SQGSBaseStation_Register(this->engine); @@ -110,6 +112,7 @@ void GameInstance::RegisterAPI() SQGSEngineList_Register(this->engine); SQGSError_Register(this->engine); SQGSEvent_Register(this->engine); + SQGSEventAdminPort_Register(this->engine); SQGSEventCompanyBankrupt_Register(this->engine); SQGSEventCompanyInTrouble_Register(this->engine); SQGSEventCompanyMerger_Register(this->engine); -- cgit v1.2.3-54-g00ecf