Changeset 7238 in orxonox.OLD for branches/resources/src/lib/util/loading
- Timestamp:
- Mar 22, 2006, 11:25:52 AM (19 years ago)
- Location:
- branches/resources/src/lib/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/resources/src/lib/util/loading/resource.cc
r7237 r7238 21 21 namespace Loading 22 22 { 23 Resource::SharedResource::SharedResource() 24 { 25 this->referenceCount = 1; 26 this->type = CL_NULL; 27 this->prio = RP_NO; 28 } 29 23 30 24 31 /** … … 35 42 * standard deconstructor 36 43 */ 37 // Resource::~Resource () 44 // Resource::~Resource () 45 // { 46 // } 47 48 49 bool Resource::load(std::string& fileName, ResourcePriority prio, 50 const MultiType& param0, const MultiType& param1, const MultiType& param2) 51 {} 52 bool Resource::cache(std::string& fileName, ResourcePriority prio, 53 const MultiType& param0, const MultiType& param1, const MultiType& param2) 54 {} 55 56 57 // reloads the resource. 58 // bool Resource::reload() 59 // {} 60 // unloads the sharedResource (from this Resource) 61 bool Resource::unload() 62 {} 63 64 // checks if a resource was already loaded. 65 bool Resource::isLoaded(std::string& fileName, 66 const MultiType& param0, const MultiType& param1, const MultiType& param2) 67 {} 68 69 // raises the priority can only be raised 70 void Resource::raisePriority(ResourcePriority prio) 71 {} 72 73 // const SharedResource* findResource(std::string& fileName, 74 // const MultiType& param0, const MultiType& param1, const MultiType& param2) 38 75 // { 39 76 // } 40 77 41 Resource::SharedResource::SharedResource()42 {43 this->referenceCount = 1;44 this->type = CL_NULL;45 this->prio = RP_NO;46 }47 48 49 78 50 79 } -
branches/resources/src/lib/util/loading/resource_manager.h
r7225 r7238 21 21 22 22 #include "base_object.h" 23 #include "resource.h" 24 23 25 #include "multi_type.h" 26 24 27 25 28 #include <vector> … … 50 53 }; 51 54 52 //! An enumerator for different UNLOAD-types.55 //! An enumerator for different (UN)LOAD-types. 53 56 /** 54 55 56 57 58 */59 typedef enum ResourcePriority57 * RP_NO: will be unloaded on request 58 * RP_LEVEL: will be unloaded at the end of a Level 59 * RP_CAMPAIGN: will be unloaded at the end of a Campaign 60 * RP_GAME: will be unloaded at the end of the whole Game (when closing orxonox) 61 */ 62 typedef enum ResourcePriority 60 63 { 61 64 RP_NO = 0, 62 65 RP_LEVEL = 1, 63 66 RP_CAMPAIGN = 2, 64 RP_GAME = 467 RP_GAME = 3 65 68 }; 69 66 70 67 71 //! A Struct that keeps track about a resource its name its Type, and so on
Note: See TracChangeset
for help on using the changeset viewer.