Changeset 9916 in orxonox.OLD for trunk/src/lib/script_engine/script_class.cc
- Timestamp:
- Nov 3, 2006, 9:29:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/script_engine/script_class.cc
r9897 r9916 17 17 18 18 #include "script_class.h" 19 #include "script.h" 20 #include "debug.h" 19 21 #include <cassert> 20 22 21 23 ObjectListDefinition(ScriptClass); 24 25 CREATE_SCRIPTABLE_CLASS(Script, 26 addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject)) 27 ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass)) 28 ->addMethod("selectFunction", Executor2ret<Script, lua_State*, bool, const std::string&, int >(&Script::selectFunction)) 29 ->addMethod("executeFunction", Executor0ret<Script, lua_State*,bool >(&Script::executeFunction)) 30 ); 22 31 /** 23 32 * @brief standard constructor … … 27 36 : BaseObject(name), _classID(classID) 28 37 { 38 PRINTF(4)("Name %s\n", name.c_str()); 29 39 assert(scriptMethods != NULL); 30 40 this->registerObject(this, ScriptClass::_objectList);
Note: See TracChangeset
for help on using the changeset viewer.