Changeset 922
- Timestamp:
- 03/15/10 23:46:33 (5 months ago)
- Location:
- trunk/client/Game2
- Files:
-
- 2 modified
-
GamePeer.cpp (modified) (2 diffs)
-
GamePeer.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/Game2/GamePeer.cpp
r918 r922 58 58 module(L) [ 59 59 class_<GamePeer>("Game") 60 .def("get_on_init", &LGetOnInit) 60 61 .def("on_init", &LOnInit) 61 62 ]; … … 110 111 } 111 112 112 /*TODO 113 int GamePeer::LGetOnInit(lua_State *state) 113 void GamePeer::LGetOnInit() 114 114 { 115 115 // function get_on_init() 116 116 // Returns the table of on_init callbacks (for debugging purposes). 117 SysConsole *self = static_cast<SysConsole*>(lua_touserdata(state, lua_upvalueindex(1)));118 117 119 lua_rawgeti(state, LUA_REGISTRYINDEX, self->onInitRef); // table 120 121 return 1; 118 lua_rawgeti(scripting->GetState(), LUA_REGISTRYINDEX, onInitRef); // table 122 119 } 123 */124 120 125 121 } // namespace Client -
trunk/client/Game2/GamePeer.h
r918 r922 54 54 public: 55 55 void LOnInit(const luabind::object &fn); 56 /*TODO57 56 void LGetOnInit(); 58 */59 57 60 58 private:
