mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-06-06 15:13:30 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
41 lines
1004 B
C++
41 lines
1004 B
C++
#ifndef _CSIMPLEPOOL
|
|
#define _CSIMPLEPOOL
|
|
|
|
#include "types.h"
|
|
|
|
#include "rstl/hash_map.hpp"
|
|
#include "rstl/rc_ptr.hpp"
|
|
|
|
#include "Kyoto/CToken.hpp"
|
|
#include "Kyoto/IObjectStore.hpp"
|
|
|
|
class IFactory;
|
|
|
|
class CSimplePool : public IObjectStore {
|
|
public:
|
|
CSimplePool(IFactory& factory);
|
|
~CSimplePool();
|
|
|
|
virtual CToken GetObj(const SObjectTag& tag, CVParamTransfer xfer);
|
|
virtual CToken GetObj(const SObjectTag& tag);
|
|
virtual CToken GetObj(const char* name);
|
|
virtual CToken GetObj(const char* name, CVParamTransfer xfer);
|
|
virtual bool HasObject(const SObjectTag& tag);
|
|
virtual bool ObjectIsLive(const SObjectTag& tag);
|
|
virtual unkptr GetFactory();
|
|
virtual void Flush();
|
|
virtual void ObjectUnreferenced(const SObjectTag& tag);
|
|
|
|
private:
|
|
uchar x4_;
|
|
uchar x5_;
|
|
rstl::hash_map< unkptr, unkptr, void, void > x8_resources;
|
|
unkptr x18_factory;
|
|
rstl::rc_ptr< CVParamTransfer > x1c_paramXfr;
|
|
};
|
|
CHECK_SIZEOF(CSimplePool, 0x20)
|
|
|
|
extern CSimplePool* gpSimplePool;
|
|
|
|
#endif // _CSIMPLEPOOL
|