2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-15 06:31:21 +00:00
metaforce/Runtime/CSimplePool.hpp
Lioncash 36d04456dd General: Normalize RuntimeCommonB include paths
Finishes the normalizing of all of includes within the RuntimeCommonB target's headers.
2019-09-23 17:22:37 -04:00

38 lines
1.0 KiB
C++

#pragma once
#include <unordered_map>
#include <vector>
#include "Runtime/IObjectStore.hpp"
#include "Runtime/IVParamObj.hpp"
#include "Runtime/RetroTypes.hpp"
namespace urde {
class CObjectReference;
class IFactory;
class CSimplePool : public IObjectStore {
protected:
u8 x4_;
u8 x5_;
std::unordered_map<SObjectTag, CObjectReference*> x8_resources;
IFactory& x18_factory;
CVParamTransfer x1c_paramXfer;
public:
CSimplePool(IFactory& factory);
~CSimplePool() override;
CToken GetObj(const SObjectTag&, const CVParamTransfer&) override;
CToken GetObj(const SObjectTag&) override;
CToken GetObj(std::string_view) override;
CToken GetObj(std::string_view, const CVParamTransfer&) override;
bool HasObject(const SObjectTag&) const override;
bool ObjectIsLive(const SObjectTag&) const override;
IFactory& GetFactory() const override { return x18_factory; }
void Flush() override;
void ObjectUnreferenced(const SObjectTag&) override;
std::vector<SObjectTag> GetReferencedTags() const;
};
} // namespace urde