Changeset 9757 in orxonox.OLD for branches/new_class_id/src/lib/script_engine
- Timestamp:
- Sep 18, 2006, 10:06:19 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/script_engine/script.cc
r9749 r9757 25 25 ObjectListDefinition(Script); 26 26 27 CREATE_SCRIPTABLE_CLASS(Script, Script::classID(),27 CREATE_SCRIPTABLE_CLASS(Script, 28 28 addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject)) 29 29 ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass)) -
branches/new_class_id/src/lib/script_engine/script_class.h
r9749 r9757 18 18 * this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 19 19 */ 20 #define CREATE_SCRIPTABLE_CLASS(CLASS_NAME, CLASS_ID,SCRIPT_METHODS) \21 tScriptClass<CLASS_NAME> global_##CLASS_NAME##_ScriptableClass(#CLASS_NAME, CLASS_ ID, (new ScriptMethod)->SCRIPT_METHODS)20 #define CREATE_SCRIPTABLE_CLASS(CLASS_NAME, SCRIPT_METHODS) \ 21 tScriptClass<CLASS_NAME> global_##CLASS_NAME##_ScriptableClass(#CLASS_NAME, CLASS_NAME::staticClassID(), (new ScriptMethod)->SCRIPT_METHODS) 22 22 23 23
Note: See TracChangeset
for help on using the changeset viewer.