Mercurial > fife-parpg
diff engine/core/util/resource/resource.i @ 139:2cc01d9433ab
Minor Changes to SWIG-Interface
author | thebastion@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 27 Sep 2008 23:33:17 +0000 |
parents | 90005975cdbb |
children | 72c25cc27d8b |
line wrap: on
line diff
--- a/engine/core/util/resource/resource.i Sat Sep 27 20:33:30 2008 +0000 +++ b/engine/core/util/resource/resource.i Sat Sep 27 23:33:17 2008 +0000 @@ -58,6 +58,7 @@ virtual void setResourceFile(const std::string& filename) = 0; virtual int getPoolId() = 0; virtual void setPoolId(int poolid) = 0; + virtual unsigned int getRefCount() = 0; }; %warnfilter(473) ResourceLoader; // filter out "returning a pointer or reference in a director method is not recommended" @@ -86,6 +87,11 @@ virtual int addResourceFromLocation(const ResourceLocation& loc); virtual int getResourceCount(int status); virtual void addResourceLoader(ResourceLoader* loader); + virtual void release(unsigned int index, bool dec = false); + virtual unsigned int getIndex(const std::string& filename); + virtual IResource& get(unsigned int index, bool inc = false); + virtual void printStatistics(); + private: Pool(); };