2016-03-16 19:53:06 +00:00
|
|
|
#include "CPathFindArea.hpp"
|
|
|
|
#include "IVParamObj.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2016-08-10 16:05:14 +00:00
|
|
|
CPFArea::CPFArea(const std::unique_ptr<u8[]>&& buf, int len)
|
2016-03-16 19:53:06 +00:00
|
|
|
{
|
2016-08-10 16:05:14 +00:00
|
|
|
x13c_ = buf.get();
|
2016-03-16 19:53:06 +00:00
|
|
|
}
|
|
|
|
|
2016-08-10 16:05:14 +00:00
|
|
|
std::unique_ptr<IObj> FPathFindAreaFactory(const SObjectTag& /*tag*/, const std::unique_ptr<u8[]>& buf,
|
|
|
|
const CVParamTransfer &xfer)
|
2016-03-16 19:53:06 +00:00
|
|
|
{
|
2016-08-10 16:05:14 +00:00
|
|
|
return TToken<CPFArea>::GetIObjObjectFor(
|
|
|
|
std::unique_ptr<CPFArea>(new CPFArea(std::move(buf), *reinterpret_cast<int*>(xfer.GetObj()))));
|
2016-03-16 19:53:06 +00:00
|
|
|
}
|
|
|
|
}
|