2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Prelim CSimplePool RE work (needs verification)

This commit is contained in:
2016-02-04 21:52:05 -08:00
parent e060746b14
commit 0133115cee
7 changed files with 57 additions and 14 deletions

View File

@@ -13,7 +13,8 @@ class CObjectReference;
class CSimplePool : public IObjectStore
{
std::unordered_map<SObjectTag, CObjectReference*> x4_resources;
std::list<std::pair<SObjectTag, CObjectReference*>> x4_resources;
//std::unordered_map<SObjectTag, CObjectReference*> x4_resources;
IFactory& x30_factory;
CVParamTransfer x34_paramXfer;
public:
@@ -22,8 +23,8 @@ public:
CToken GetObj(const SObjectTag&);
CToken GetObj(char const*);
CToken GetObj(char const*, const CVParamTransfer&);
void HasObject(const SObjectTag&) const;
void ObjectIsLive(const SObjectTag&) const;
bool HasObject(const SObjectTag&) const;
bool ObjectIsLive(const SObjectTag&) const;
IFactory& GetFactory() const {return x30_factory;}
void Flush();
void ObjectUnreferenced(const SObjectTag&);