Changeset 9244 in orxonox.OLD
- Timestamp:
- Jul 6, 2006, 5:00:44 PM (18 years ago)
- Location:
- branches/scripting/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scripting/src/lib/script_engine/script.cc
r9243 r9244 50 50 51 51 52 Script::Script(const std::string& filename) 53 { 54 this->setClassID(CL_SCRIPT, "Script"); 55 56 returnCount = argumentCount = 0; 57 58 luaState = lua_open(); 59 60 luaopen_base(luaState); 61 luaopen_table(luaState); 62 luaopen_io(luaState); 63 luaopen_string(luaState); 64 luaopen_math(luaState); 65 luaopen_debug(luaState); 66 67 this->loadFile(filename); 68 69 } 70 52 71 Script::~Script() 53 72 { … … 62 81 BaseObject::loadParams(root); 63 82 64 83 LOAD_PARAM_START_CYCLE(root, object); 65 84 { 66 85 LoadParam_CYCLE(object, "object", this, Script, addObject) 67 86 .describe("The name of an object that is needed by a script"); 68 87 } 69 88 LOAD_PARAM_END_CYCLE(object); 70 89 71 90 -
branches/scripting/src/lib/script_engine/script.h
r9235 r9244 24 24 public: 25 25 Script(const TiXmlElement* root = NULL); 26 Script(const std::string& filename); 26 27 ~Script(); 27 28
Note: See TracChangeset
for help on using the changeset viewer.