2017-08-21 00:29:59 +00:00
|
|
|
#include "CMetaree.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace urde::MP1
|
2017-08-21 00:29:59 +00:00
|
|
|
{
|
2017-11-13 06:19:18 +00:00
|
|
|
CMetaree::CMetaree(TUniqueId uid, std::string_view name, EFlavorType flavor, const CEntityInfo& info,
|
2017-08-21 00:29:59 +00:00
|
|
|
const zeus::CTransform& xf, CModelData&& mData, const CPatternedInfo& pInfo, const CDamageInfo& dInfo,
|
|
|
|
float f1, const zeus::CVector3f& v1, float f2, EBodyType bodyType, float f3, float f4,
|
|
|
|
const CActorParameters& aParms)
|
|
|
|
: CPatterned(ECharacter::Metaree, uid, name, flavor, info, xf, std::move(mData), pInfo, EMovementType::Flyer,
|
2018-11-06 06:16:12 +00:00
|
|
|
EColliderType::Zero, bodyType, aParms, EKnockBackVariant::Small)
|
2017-08-21 00:29:59 +00:00
|
|
|
, x568_(f3)
|
|
|
|
, x56c_(f4)
|
|
|
|
, x570_(f1)
|
|
|
|
, x574_(v1)
|
|
|
|
, x580_(f2)
|
|
|
|
, x5ca_24_(true)
|
|
|
|
, x5ca_25_(false)
|
|
|
|
, x5ca_26_(false)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMetaree::Accept(IVisitor& visitor)
|
|
|
|
{
|
|
|
|
visitor.Visit(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMetaree::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
|
|
|
{
|
|
|
|
CPatterned::AcceptScriptMsg(msg, uid, mgr);
|
|
|
|
|
|
|
|
if (msg == EScriptObjectMessage::Start)
|
|
|
|
x5ca_25_ = true;
|
|
|
|
else if (msg == EScriptObjectMessage::Registered)
|
|
|
|
x450_bodyController->Activate(mgr);
|
|
|
|
}
|
|
|
|
}
|