Mercurial > fife-parpg
diff engine/core/util/resource/resource.i @ 644:b84dbc4665b0
loaders extension can now handle multiple loaders for different filetypes. A difference between map and object files is now being made!
Fixed a small redundancy in the guimanager.
Added clearResourceLoaders() to the Pool class. This can be used if different resourceloaders have to be added at a later point in time (running editor for example, a plugin might want to have it's own loader added)
author | nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 11 Oct 2010 22:20:00 +0000 |
parents | 376b8afc9a18 |
children | bb26a76458c6 |
line wrap: on
line diff
--- a/engine/core/util/resource/resource.i Sat Oct 09 17:00:33 2010 +0000 +++ b/engine/core/util/resource/resource.i Mon Oct 11 22:20:00 2010 +0000 @@ -76,7 +76,7 @@ virtual void save(const ResourceLocation& location, IResource* resource) = 0; virtual void save(const std::string& filename, IResource* resource) { save(ResourceLocation(filename), resource); } }; - + enum { RES_LOADED = 0x01, RES_NON_LOADED = 0x02}; @@ -89,13 +89,14 @@ virtual int getResourceCount(int status); virtual int purgeLoadedResources(); virtual void addResourceLoader(ResourceLoader* loader); + virtual void clearResourceLoaders(); virtual void release(unsigned int index, bool dec = false); virtual IResource& get(unsigned int index, bool inc = false); virtual void printStatistics(); private: Pool(); - }; + }; class ResourcePtr { public: