Changeset 8138 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 3, 2006, 8:09:14 PM (19 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
r8135 r8138 17 17 18 18 } 19 20 ScriptManager* ScriptManager::getInstance() 21 { 22 23 if (!ScriptManager::singletonRef) 24 ScriptManager::singletonRef = new ScriptManager(); 25 return ScriptManager::singletonRef; 26 27 } 28 19 29 20 30 //!< Fills the worldObject list -
branches/script_engine/src/lib/script_engine/script_manager.h
r8137 r8138 24 24 ~ScriptManager(); 25 25 26 inline static ScriptManager* getInstance(); 27 26 28 void loadParams(const TiXmlElement* root); 27 29 … … 34 36 35 37 private: 38 36 39 void init(std::string& world); 37 40 41 static ScriptManager* singletonRef; //!< Reference to this class 38 42 std::list<scriptableObject> objectList; //!< The list of all Objects in a world (read from the *.oxw file of the world) 39 43 std::string currentWorld;
Note: See TracChangeset
for help on using the changeset viewer.