Mercurial > fife-parpg
comparison engine/core/util/resource/pool.h @ 152:679ed3e15513
Deprecation: getIndex is now thrown out.
Import fife_compat for the transition.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 11 Oct 2008 12:55:41 +0000 |
parents | 823544621b5b |
children | 376b8afc9a18 |
comparison
equal
deleted
inserted
replaced
151:afcd83f7fac8 | 152:679ed3e15513 |
---|---|
88 * | 88 * |
89 * @param inc Specifies weither this call will increase the ref counter | 89 * @param inc Specifies weither this call will increase the ref counter |
90 */ | 90 */ |
91 virtual IResource& get(unsigned int index, bool inc = false); | 91 virtual IResource& get(unsigned int index, bool inc = false); |
92 | 92 |
93 /** Gets resource index from pool with given filename | |
94 * The resource will be created if it is not in the pool | |
95 */ | |
96 virtual int getIndex(const std::string& filename); | |
97 | |
98 /** Removes the resource from pool if reference counter is null | 93 /** Removes the resource from pool if reference counter is null |
99 * | 94 * |
100 * @param dec Specifies weither the ref counter will be decreased | 95 * @param dec Specifies weither the ref counter will be decreased |
101 * before checking | 96 * before checking |
102 */ | 97 */ |