metaforce/Runtime/MP1/World/CBurrower.cpp

22 lines
1022 B
C++
Raw Normal View History

#include "Runtime/MP1/World/CBurrower.hpp"
#include "Runtime/CStateManager.hpp"
2018-10-11 22:57:05 +00:00
2018-12-08 05:30:43 +00:00
namespace urde::MP1 {
2018-10-11 22:57:05 +00:00
CBurrower::CBurrower(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
2018-12-08 05:30:43 +00:00
CModelData&& mData, const CPatternedInfo& pInfo, const CActorParameters& actParms, CAssetId,
CAssetId, CAssetId, const CDamageInfo&, CAssetId, u32, CAssetId)
2018-10-11 22:57:05 +00:00
: CPatterned(ECharacter::Burrower, uid, name, EFlavorType::Zero, info, xf, std::move(mData), pInfo,
2018-12-08 05:30:43 +00:00
EMovementType::Ground, EColliderType::One, EBodyType::BiPedal, actParms, EKnockBackVariant::Small) {}
2018-10-11 22:57:05 +00:00
2018-12-08 05:30:43 +00:00
void CBurrower::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
CPatterned::AcceptScriptMsg(msg, uid, mgr);
if (msg == EScriptObjectMessage::Registered)
x450_bodyController->Activate(mgr);
else if (msg == EScriptObjectMessage::InitializedInArea) {
2018-12-08 05:30:43 +00:00
} else if (msg == EScriptObjectMessage::InvulnDamage)
x6a4_ = 1.f;
}
2018-12-08 05:30:43 +00:00
} // namespace urde::MP1