metaforce/Runtime/World/CPatterned.cpp

32 lines
1.7 KiB
C++
Raw Normal View History

2016-04-25 05:03:38 +00:00
#include "CPatterned.hpp"
#include "CPatternedInfo.hpp"
namespace urde
{
2016-04-25 05:46:28 +00:00
CMaterialList gkPatternedGroundMaterialList(EMaterialTypes::ThirtyThree,
EMaterialTypes::Nineteen,
EMaterialTypes::FourtyOne,
2016-04-25 05:57:24 +00:00
EMaterialTypes::ThirtySeven,
2016-04-25 05:46:28 +00:00
EMaterialTypes::Fourty);
CMaterialList gkPatternedFlyerMaterialList(EMaterialTypes::ThirtyThree,
EMaterialTypes::Nineteen,
EMaterialTypes::FourtyOne,
EMaterialTypes::Fourty);
2016-04-25 05:03:38 +00:00
2016-04-25 05:46:28 +00:00
CPatterned::CPatterned(EUnknown, TUniqueId uid, const std::string& name, CPatterned::EFlavorType flavor,
const CEntityInfo& info, const zeus::CTransform& xf, CModelData&& mData,
const CPatternedInfo& pInfo, CPatterned::EMovementType moveType, CPatterned::EColliderType,
EBodyType, const CActorParameters& actorParms, bool)
2016-04-25 05:46:28 +00:00
: CAi(uid, pInfo.xf8_active, name, info, xf, std::move(mData),
zeus::CAABox(pInfo.xcc_bodyOrigin - zeus::CVector3f{pInfo.xc4_halfExtent, pInfo.xc4_halfExtent, 0.f},
2016-09-01 19:39:13 +00:00
pInfo.xcc_bodyOrigin + zeus::CVector3f{pInfo.xc4_halfExtent, pInfo.xc4_halfExtent,
pInfo.xc8_height}),
2016-04-25 05:46:28 +00:00
pInfo.x0_mass, pInfo.x54_healthInfo, pInfo.x5c_damageVulnerability,
moveType == EMovementType::Flyer ? gkPatternedFlyerMaterialList : gkPatternedGroundMaterialList,
2016-09-01 19:39:13 +00:00
pInfo.xfc_stateMachineId, actorParms, pInfo.xd8_stepUpHeight, 0.8f)
2016-04-25 05:03:38 +00:00
{
}
}