metaforce/Runtime/MP1/World/CMetaree.cpp

41 lines
1.1 KiB
C++
Raw Normal View History

2017-08-21 00:29:59 +00:00
//
// Created by antidote on 8/19/17.
//
#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,
EColliderType::Zero, bodyType, aParms, 0)
, 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);
}
}