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)));
|
|
|
|
}
|
|
|
|
}
|