Changeset 9031 in orxonox.OLD for branches/single_player_map/src/lib/script_engine
- Timestamp:
- Jul 3, 2006, 1:35:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/script_engine/script.cc
r9020 r9031 26 26 CREATE_SCRIPTABLE_CLASS(Script, CL_SCRIPT, 27 27 addMethod("addObject", ExecutorLua2<Script,const std::string&, const std::string& >(&Script::addObject)) 28 //->addMethod("selectFunction", ExecutorLua2ret<Script, bool, const std::string&, int >(&Script::selectFunction))28 // ->addMethod("selectFunction", ExecutorLua2ret<Script, bool, const std::string&, int >(&Script::selectFunction)) 29 29 ->addMethod("executeFunction", ExecutorLua0ret<Script,bool >(&Script::executeFunction)) 30 30 ); … … 82 82 filedest += "scripts/" + filename; 83 83 84 this->addThisScript(); 85 this->registerStandartClasses(); 86 84 87 if(currentFile.length() != 0) 85 88 { … … 98 101 { 99 102 currentFile = filename; 100 this->addThisScript();101 this->registerStandartClasses();102 103 return true; 103 104 } … … 121 122 void Script::addObject(const std::string& className, const std::string& objectName) 122 123 { 123 // printf("Script %p: I am about to add %s of class %s\n",this,objectName.c_str(),className.c_str());124 //printf("Script %s: I am about to add %s of class %s\n",this->getName(),objectName.c_str(),className.c_str()); 124 125 125 126 BaseObject* scriptClass = ClassList::getObject(className, CL_SCRIPT_CLASS); … … 359 360 //success = this->registerClass(std::string("Vector")); 360 361 success = this->registerClass("ScriptTrigger"); 361 success = this->registerClass("Script"); 362 362 363 363 return success; 364 364 }
Note: See TracChangeset
for help on using the changeset viewer.