Changeset 9785 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.h
- Timestamp:
- Sep 22, 2006, 3:40:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.h
r9784 r9785 12 12 #include <vector> 13 13 #include <set> 14 15 #include "filesys/directory.h" 14 16 15 17 //! A Resource is an Object, that can be loaded from Disk … … 48 50 49 51 void setID(int id); 52 void addResource(Resource* resource); 50 53 51 54 private: … … 73 76 74 77 public: 75 Resource( );78 Resource(Resource::Type* type); 76 79 virtual ~Resource(); 77 80 78 virtual bool reload(); 79 virtual bool unload(); 81 virtual bool reload() { return false; }; 82 virtual bool unload() { return false; }; 83 84 std::string locateFile(const std::string& fileName); 85 86 87 public: 88 static void setMainGlobalPath(const Directory& directory); 89 static void addGlobalPath(const Directory& directory); 90 80 91 81 92 protected: 82 Resource::Pointer* acquireResource(Resource::Type& resourceType, const std::string& loadString); 93 Resource::Pointer* acquireResource(const std::string& loadString); 94 void addResource(Resource::Pointer* pointer); 83 95 84 96 private: 85 97 Resource::Pointer* _pointer; //!< Virtual Pointer to the ResourceData. 98 Resource::Type* _type; //!< Type of the Resource. 86 99 87 100 … … 89 102 90 103 //! GLOBALS 91 static std::string_mainGlobalPath;92 static std::vector< std::string>_globalPaths;104 static Directory _mainGlobalPath; 105 static std::vector<Directory> _globalPaths; 93 106 }; 94 107
Note: See TracChangeset
for help on using the changeset viewer.