Changeset 9032 in orxonox.OLD for branches/single_player_map/src/lib/script_engine
- Timestamp:
- Jul 3, 2006, 1:41:42 PM (18 years ago)
- Location:
- branches/single_player_map/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/script_engine/script.cc
r9031 r9032 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 ); … … 166 166 } 167 167 168 bool Script::selectFunction( std::string& functionName, int retCount)168 bool Script::selectFunction(const std::string& functionName, int retCount) 169 169 { 170 170 if(returnCount == 0 && currentFunction.length() == 0) //no return values left on the stack and no other function selected -
branches/single_player_map/src/lib/script_engine/script.h
r9003 r9032 42 42 /// EXECUTING 43 43 // first select function 44 bool selectFunction( std::string& functionName, int retCount);44 bool selectFunction(const std::string& functionName, int retCount); 45 45 46 46 // push parameters for luafunction
Note: See TracChangeset
for help on using the changeset viewer.