- Timestamp:
- Jun 5, 2006, 3:55:12 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/script_manager.cc
r8156 r8157 115 115 bool ScriptManager::fileIsInScriptList(std::string& file) 116 116 { 117 for(std::list<LuaScript>:: iterator it = scriptList.begin(); it != scriptList.end(); it++ )117 for(std::list<LuaScript>::const_iterator it = scriptList.begin(); it != scriptList.end(); it++ ) 118 118 { 119 119 if( (*it).name.compare(file) == 0) … … 128 128 bool ScriptManager::objectIsInObjectList(std::string& object, const LuaScript& script) 129 129 { 130 for(std::list<std::string>:: iterator it = script.objectList.begin(); it != script.objectList.end(); it++ )130 for(std::list<std::string>::const_iterator it = script.objectList.begin(); it != script.objectList.end(); it++ ) 131 131 { 132 132 if( (*it).compare(object) == 0) -
branches/script_engine/src/lib/script_engine/script_manager.h
r8155 r8157 37 37 38 38 void init(); 39 void createScriptList( TiXmlElement* scripts);39 void createScriptList(const TiXmlElement* scripts); 40 40 void setCurrentScriptFile(std::string& file); 41 41 void addObjectToScript(std::string& object, LuaScript& script);
Note: See TracChangeset
for help on using the changeset viewer.