2017-07-05 18:34:12 +00:00
|
|
|
#include "CMetroid.hpp"
|
|
|
|
#include "World/ScriptLoader.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace urde::MP1
|
2017-07-05 18:34:12 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2017-11-13 06:19:18 +00:00
|
|
|
CMetroid::CMetroid(TUniqueId uid, std::string_view name, EFlavorType flavor, const CEntityInfo& info,
|
2017-07-05 18:34:12 +00:00
|
|
|
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,
|
2017-07-10 04:55:51 +00:00
|
|
|
EMovementType::Flyer, EColliderType::One, EBodyType::Flyer, aParms, true)
|
2017-07-05 18:34:12 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|