2017-07-05 18:34:12 +00:00
|
|
|
#include "CMetroid.hpp"
|
|
|
|
#include "World/ScriptLoader.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
2017-07-05 18:34:12 +00:00
|
|
|
|
|
|
|
CMetroidData::CMetroidData(CInputStream& in)
|
2018-12-08 05:30:43 +00:00
|
|
|
: 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-07-05 18:34:12 +00:00
|
|
|
}
|
|
|
|
|
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,
|
2019-01-31 20:44:05 +00:00
|
|
|
const CActorParameters& aParms, const CMetroidData& metroidData, TUniqueId)
|
2018-12-08 05:30:43 +00:00
|
|
|
: CPatterned(ECharacter::Metroid, uid, name, flavor, info, xf, std::move(mData), pInfo, EMovementType::Flyer,
|
|
|
|
EColliderType::One, EBodyType::Flyer, aParms, EKnockBackVariant::Medium) {}
|
2017-07-05 18:34:12 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|