mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 03:47:43 +00:00
More factory stubs
This commit is contained in:
24
Runtime/Particle/CParticleElectricDataFactory.cpp
Normal file
24
Runtime/Particle/CParticleElectricDataFactory.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "CParticleElectricDataFactory.hpp"
|
||||
#include "CElectricDescription.hpp"
|
||||
#include "CSimplePool.hpp"
|
||||
|
||||
namespace Retro
|
||||
{
|
||||
|
||||
CElectricDescription* CParticleElectricDataFactory::GetGeneratorDesc(CInputStream &in, CSimplePool *resPool)
|
||||
{
|
||||
return CreateElectricDescription(in, resPool);
|
||||
}
|
||||
|
||||
CElectricDescription* CParticleElectricDataFactory::CreateElectricDescription(CInputStream &in, CSimplePool *resPool)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<Retro::IObj> FParticleElecrticFactory(const Retro::SObjectTag &tag, Retro::CInputStream &in, const Retro::CVParamTransfer &vparms)
|
||||
{
|
||||
CSimplePool* sp = static_cast<CSimplePool*>(static_cast<TObjOwnerParam<IObjectStore*>*>(vparms.GetObj())->GetParam());
|
||||
return TToken<CElectricDescription>::GetIObjObjectFor(std::unique_ptr<CElectricDescription>(CParticleElectricDataFactory::GetGeneratorDesc(in, sp)));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user