2016-02-10 22:54:47 +00:00
|
|
|
#include "CDecalDataFactory.hpp"
|
|
|
|
#include "CDecalDescription.hpp"
|
|
|
|
#include "CSimplePool.hpp"
|
|
|
|
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
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)));
|
|
|
|
}
|
|
|
|
}
|