Changeset 5308 in orxonox.OLD for trunk/src/util/resource_manager.h
- Timestamp:
- Oct 8, 2005, 12:32:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/resource_manager.h
r5306 r5308 66 66 { 67 67 BaseObject* pointer; //!< Pointer to the Resource. 68 intcount; //!< How many times this Resource has been loaded.68 unsigned int count; //!< How many times this Resource has been loaded. 69 69 70 70 char* name; //!< Name of the Resource. … … 85 85 //! The ResourceManager is a class, that decides if a file/resource should be loaded 86 86 /** 87 If a file/resource was already loaded the resourceManager will 88 return a void pointer to the desired resource. 89 Otherwise it will instruct the corresponding resource-loader to load, 90 and receive the pointer to it. 91 92 It does it by looking, if a desired file has already been loaded. 93 */ 87 * If a file/resource was already loaded the resourceManager will 88 * return a pointer to the desired resource. 89 * Otherwise it will instruct the corresponding resource-loader to load, 90 * and receive the pointer to it. 91 * 92 * It does it by looking, if a desired file has already been loaded. 93 * There is also the possibility to check for some variables 94 */ 94 95 class ResourceManager : public BaseObject 95 96 { … … 101 102 bool setDataDir(const char* dataDir); 102 103 /** @returns the Name of the data directory */ 103 inline const char* getDataDir() const { return this->dataDir;}104 inline const char* getDataDir() const { return this->dataDir; }; 104 105 105 106 bool checkDataDir(const char* fileInside); … … 135 136 static ResourceManager* singletonRef; //!< singleton Reference 136 137 138 char* dataDir; //!< The Data Directory, where all relevant Data is stored. 137 139 tList<Resource>* resourceList; //!< The List of Resources, that has already been loaded. 138 char* dataDir; //!< The Data Directory, where all relevant Data is stored.139 140 tList<char>* imageDirs; //!< A list of directories in which images are stored. 140 141
Note: See TracChangeset
for help on using the changeset viewer.