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:
14
Runtime/Particle/CParticleSwooshDataFactory.cpp
Normal file
14
Runtime/Particle/CParticleSwooshDataFactory.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "CParticleSwooshDataFactory.hpp"
|
||||
#include "CSwooshDescription.hpp"
|
||||
|
||||
#include "CSimplePool.hpp"
|
||||
|
||||
namespace Retro
|
||||
{
|
||||
|
||||
std::unique_ptr<Retro::IObj> FParticleSwooshDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms)
|
||||
{
|
||||
CSimplePool* sp = static_cast<CSimplePool*>(static_cast<TObjOwnerParam<IObjectStore*>*>(vparms.GetObj())->GetParam());
|
||||
return TToken<CSwooshDescription>::GetIObjObjectFor(std::unique_ptr<CSwooshDescription>(CParticleSwooshDataFactory::GetGeneratorDesc(in, sp)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user