Changeset 3340 for code/branches/resource/src/orxonox
- Timestamp:
- Jul 23, 2009, 8:47:55 PM (15 years ago)
- Location:
- code/branches/resource/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/orxonox/gamestates/GSRoot.cc
r3304 r3340 34 34 #include "core/Game.h" 35 35 #include "core/GameMode.h" 36 #include "core/LuaBind.h" 36 37 #include "network/NetworkFunction.h" 38 #include "ToluaBindCore.h" 39 #include "ToluaBindOrxonox.h" 37 40 #include "tools/Timer.h" 38 41 #include "interfaces/TimeFactorListener.h" … … 58 61 this->ccSetTimeFactor_ = 0; 59 62 this->ccPause_ = 0; 63 64 // Tell LuaBind about all tolua interfaces 65 LuaBind::getInstance().addToluaInterface(&tolua_Core_open, "Core"); 66 LuaBind::getInstance().addToluaInterface(&tolua_Orxonox_open, "Orxonox"); 60 67 } 61 68 -
code/branches/resource/src/orxonox/gui/GUIManager.cc
r3339 r3340 59 59 #include "core/Core.h" 60 60 #include "core/Clock.h" 61 #include "ToluaBindCore.h" 62 #include "ToluaBindOrxonox.h" 61 #include "core/LuaBind.h" 63 62 64 63 namespace orxonox … … 136 135 137 136 // do this after 'new CEGUI::Sytem' because that creates the lua state in the first place 138 tolua_Core_open(this->scriptModule_->getLuaState()); 139 tolua_Orxonox_open(this->scriptModule_->getLuaState()); 137 LuaBind::getInstance().openToluaInterfaces(this->luaState_); 140 138 141 139 // initialise the basic lua code … … 162 160 { 163 161 // destroy our own tolua interfaces 164 lua_pushnil(luaState_); 165 lua_setglobal(luaState_, "Orxonox"); 166 lua_pushnil(luaState_); 167 lua_setglobal(luaState_, "Core"); 162 LuaBind::getInstance().closeToluaInterfaces(this->luaState_); 168 163 169 164 singletonRef_s = 0;
Note: See TracChangeset
for help on using the changeset viewer.