Changeset 8391 in orxonox.OLD for branches/script_engine/src/world_entities
- Timestamp:
- Jun 14, 2006, 3:35:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/world_entities/script_trigger.cc
r8379 r8391 146 146 { 147 147 std::string file("lunartest2.lua"); 148 // Script script;148 //get script 149 149 Script* script = State::getScriptManager()->getScriptByFile(file); 150 150 printf("-------------------------- top of the stack:%i\n",lua_gettop(script->getLuaState())); 151 152 // Register classes with the script153 // Lunar<Account>::Register(&script);154 //Lunar<Object>::Register(&script);155 156 //Object* obj= new Object();157 //Account a;158 //Account *b = new Account(30);159 160 // Add instances to the script161 //Lunar<Object>::insertObject(&script,obj,"Obj",true);162 //Lunar<Account>::insertObject(&script,&a,"a",false);163 //Lunar<Account>::insertObject(&script,b,"b",true);164 //printf("-------------------------- top of the stack:%i\n",lua_gettop(script.getLuaState()));165 166 //Load a file167 //std::string file("lunartest2.lua");168 169 //if(script.loadFile(file))170 //printf("File %s succefully loaded\n", file.c_str());171 //printf("-------------------------- top of the stack:%i\n",lua_gettop(script.getLuaState()));172 151 173 152 //execute a function
Note: See TracChangeset
for help on using the changeset viewer.