Changeset 8290 in orxonox.OLD for branches/script_engine/src
- Timestamp:
- Jun 8, 2006, 8:10:58 PM (18 years ago)
- Location:
- branches/script_engine/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/lunartest2.lua
r8271 r8290 22 22 23 23 function main(arg) 24 io.write("hello i am main!") 24 25 -- use parameter 25 26 io.write("main received ", arg) 26 27 io.write(" as parameter\n") 27 28 29 o = Object() 30 o:printName() 28 31 --call member of an inserted object 29 32 Obj:printName() 30 33 31 34 --create object of a registered type 32 o = Object()33 o:printName()35 --o = Object() 36 --o:printName() 34 37 35 38 --take returnvalue from c -
branches/script_engine/src/lib/script_engine/script.cc
r8289 r8290 37 37 void Script::loadParams(const TiXmlElement* root) 38 38 { 39 printf("Loading params for %p \n",this); 39 40 BaseObject::loadParams(root); 40 41 … … 93 94 void Script::addObject(const std::string& className, const std::string& objectName) 94 95 { 95 printf("Script : I am about to add %s of class %s\n",objectName.c_str(),className.c_str());96 printf("Script %p: I am about to add %s of class %s\n",this,objectName.c_str(),className.c_str()); 96 97 97 98 BaseObject* scriptClass = ClassList::getObject(className, CL_SCRIPT_CLASS);
Note: See TracChangeset
for help on using the changeset viewer.