metaforce/Runtime/MP1/World/CMetroid.cpp

29 lines
1.1 KiB
C++
Raw Normal View History

#include "CMetroid.hpp"
#include "World/ScriptLoader.hpp"
2018-12-08 05:30:43 +00:00
namespace urde::MP1 {
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-11-13 06:19:18 +00:00
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, 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) {}
2018-12-08 05:30:43 +00:00
} // namespace urde::MP1