Mercurial > fife-parpg
changeset 139:2cc01d9433ab
Minor Changes to SWIG-Interface
author | thebastion@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 27 Sep 2008 23:33:17 +0000 |
parents | 19ddb7411f25 |
children | 3fddb45c0304 |
files | engine/core/util/resource/resource.i |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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(); };