mirror of https://github.com/AxioDL/metaforce.git
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
#include "CMetroid.hpp"
|
|
#include "World/ScriptLoader.hpp"
|
|
|
|
namespace urde::MP1
|
|
{
|
|
|
|
CMetroidData::CMetroidData(CInputStream& in)
|
|
: x0_dVuln1(in), x68_dVuln2(in),
|
|
xd0_(in.readFloatBig()),
|
|
xd4_(in.readFloatBig()),
|
|
xd8_(in.readFloatBig()),
|
|
xdc_(in.readFloatBig()),
|
|
xe0_(in.readFloatBig()),
|
|
xe4_(in.readFloatBig())
|
|
{
|
|
xe8_animParms1 = ScriptLoader::LoadAnimationParameters(in);
|
|
xf8_animParms2 = ScriptLoader::LoadAnimationParameters(in);
|
|
x108_animParms3 = ScriptLoader::LoadAnimationParameters(in);
|
|
x118_animParms4 = ScriptLoader::LoadAnimationParameters(in);
|
|
x128_24_ = in.readBool();
|
|
}
|
|
|
|
CMetroid::CMetroid(TUniqueId uid, std::string_view name, EFlavorType flavor, const CEntityInfo& info,
|
|
const zeus::CTransform& xf, CModelData&& mData, const CPatternedInfo& pInfo,
|
|
const CActorParameters& aParms, const CMetroidData& metroidData)
|
|
: CPatterned(ECharacter::Metroid, uid, name, flavor, info, xf, std::move(mData), pInfo,
|
|
EMovementType::Flyer, EColliderType::One, EBodyType::Flyer, aParms, EKnockBackVariant::Medium)
|
|
{
|
|
}
|
|
|
|
}
|