metaforce/Runtime/Particle/CDecalDataFactory.cpp

13 lines
489 B
C++
Raw Normal View History

2016-02-10 22:54:47 +00:00
#include "CDecalDataFactory.hpp"
#include "CDecalDescription.hpp"
#include "CSimplePool.hpp"
2016-02-13 09:02:47 +00:00
namespace pshag
2016-02-10 22:54:47 +00:00
{
std::unique_ptr<IObj> FDealDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms)
{
CSimplePool* sp = static_cast<CSimplePool*>(static_cast<TObjOwnerParam<IObjectStore*>*>(vparms.GetObj())->GetParam());
return TToken<CDecalDescription>::GetIObjObjectFor(std::unique_ptr<CDecalDescription>(CDecalDataFactory::GetGeneratorDesc(in, sp)));
}
}