mirror of https://github.com/PrimeDecomp/prime.git
Match and link CFactoryStore in a really dumb way
This commit is contained in:
parent
93082a4a13
commit
ad21202340
|
@ -610,7 +610,7 @@ LIBS = [
|
|||
["Kyoto/Streams/CZipInputStream", True],
|
||||
["Kyoto/Streams/CZipOutputStream", True],
|
||||
["Kyoto/Streams/CZipSupport", True],
|
||||
"Kyoto/CFactoryStore",
|
||||
["Kyoto/CFactoryStore", True],
|
||||
["Kyoto/CObjectReference", True],
|
||||
"Kyoto/CSimplePool",
|
||||
["Kyoto/CToken", True],
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#include "Kyoto/CSimplePool.hpp"
|
||||
#include "Kyoto/CResFactory.hpp"
|
||||
|
||||
TObjOwnerParam<IObjectStore*> DumbTest() {
|
||||
CResFactory tmp;
|
||||
CSimplePool pool(tmp);
|
||||
return TObjOwnerParam<IObjectStore*>(&pool);
|
||||
}
|
Loading…
Reference in New Issue