2018-10-11 22:57:05 +00:00
|
|
|
#include "CTryclops.hpp"
|
2019-01-31 20:44:05 +00:00
|
|
|
#include "CStateManager.hpp"
|
|
|
|
#include "World/CWorld.hpp"
|
|
|
|
#include "World/CGameArea.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
|
|
|
CTryclops::CTryclops(urde::TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
2018-12-08 05:30:43 +00:00
|
|
|
urde::CModelData&& mData, const urde::CPatternedInfo& pInfo,
|
|
|
|
const urde::CActorParameters& actParms, float, float, float, float)
|
2018-10-11 22:57:05 +00:00
|
|
|
: CPatterned(ECharacter::Tryclops, 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) {}
|
2019-01-31 20:44:05 +00:00
|
|
|
|
|
|
|
void CTryclops::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) {
|
|
|
|
//x568_pathFindSearch.SetArea(mgr.GetWorld()->GetAreaAlways(GetAreaIdAlways())->GetPostConstructed()->x10bc_pathArea);
|
|
|
|
}
|
|
|
|
}
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|