Changeset 8386 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 14, 2006, 2:59:08 PM (18 years ago)
- Location:
- branches/script_engine/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/executor/executor_lua.cc
r8385 r8386 20 20 std::string temp; 21 21 22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); return obj;};22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(L, 1); return obj;}; 23 23 template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); }; 24 24 template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); }; -
branches/script_engine/src/world_entities/space_ships/helicopter.cc
r8385 r8386 35 35 36 36 CREATE_FACTORY(Helicopter, CL_HELICOPTER); 37 38 //CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER);37 #include "script_class.h" 38 CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER); 39 39 40 40
Note: See TracChangeset
for help on using the changeset viewer.