mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-18 06:05:22 +00:00
Match and link CFactoryStore in a really dumb way
Former-commit-id: ad21202340
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
class IFactory;
|
||||
class CSimplePool : public IObjectStore {
|
||||
public:
|
||||
CSimplePool(IFactory& factory);
|
||||
CSimplePool(IFactory& factory) : x18_factory(factory) {}
|
||||
~CSimplePool();
|
||||
|
||||
virtual CToken GetObj(const SObjectTag& tag, CVParamTransfer xfer);
|
||||
|
||||
@@ -10,10 +10,11 @@ template < typename T >
|
||||
class TObjOwnerParam : public IVParamObj {
|
||||
public:
|
||||
~TObjOwnerParam() {}
|
||||
T* GetData() const { return static_cast<T*>(x4_data); }
|
||||
TObjOwnerParam(T data) : x4_data(data) {}
|
||||
T GetData() const { return static_cast<T>(x4_data); }
|
||||
|
||||
private:
|
||||
T* x4_data;
|
||||
T x4_data;
|
||||
};
|
||||
|
||||
class CVParamTransfer {
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
class IFactory;
|
||||
class IObjectStore {
|
||||
public:
|
||||
IObjectStore() {}
|
||||
virtual CToken GetObj(const SObjectTag& tag, CVParamTransfer xfer) = 0;
|
||||
virtual CToken GetObj(const SObjectTag& tag) = 0;
|
||||
virtual CToken GetObj(const char* name) = 0;
|
||||
|
||||
Reference in New Issue
Block a user