mirror of https://github.com/AxioDL/metaforce.git
33 lines
1.6 KiB
C++
33 lines
1.6 KiB
C++
#include "Runtime/MP1/World/CDrone.hpp"
|
|
|
|
#include "TCastTo.hpp" // Generated file, do not modify include path
|
|
|
|
namespace urde::MP1 {
|
|
CDrone::CDrone(TUniqueId uid, std::string_view name, EFlavorType flavor, const CEntityInfo& info,
|
|
const zeus::CTransform& xf, float f1, CModelData&& mData, const CPatternedInfo& pInfo,
|
|
const CActorParameters& actParms, EMovementType movement, EColliderType colliderType, EBodyType bodyType,
|
|
const CDamageInfo& dInfo1, CAssetId w1, const CDamageInfo& dInfo2, CAssetId w2,
|
|
const std::vector<CVisorFlare::CFlareDef>& flares, float f2, float f3, float f4, float f5, float f6,
|
|
float f7, float f8, float f9, float f10, float f11, float f12, float f13, float f14, float f15,
|
|
float f16, float f17, float f18, float f19, float f20, float f21, float f22, float f23, float f24,
|
|
CAssetId w3, bool b1)
|
|
: CPatterned(ECharacter::Drone, uid, name, flavor, info, xf, std::move(mData), pInfo, movement, colliderType, bodyType,
|
|
actParms, EKnockBackVariant(flavor == EFlavorType::Zero)) {}
|
|
|
|
void CDrone::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
|
void CDrone::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender, CStateManager& mgr) {
|
|
CPatterned::AcceptScriptMsg(msg, sender, mgr);
|
|
|
|
switch (msg) {
|
|
case EScriptObjectMessage::Registered:
|
|
x450_bodyController->Activate(mgr);
|
|
x450_bodyController->SetLocomotionType(pas::ELocomotionType::Lurk);
|
|
x450_bodyController->BodyStateInfo().SetMaximumPitch(0.f);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
} // namespace urde::MP1
|