2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-07-05 18:34:12 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <optional>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/World/CAnimationParameters.hpp"
|
|
|
|
#include "Runtime/World/CPatterned.hpp"
|
2017-07-05 18:34:12 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde::MP1 {
|
|
|
|
|
|
|
|
class CMetroidData {
|
2019-01-31 20:44:05 +00:00
|
|
|
static constexpr u32 skNumProperties = 20;
|
2018-12-08 05:30:43 +00:00
|
|
|
CDamageVulnerability x0_dVuln1;
|
|
|
|
CDamageVulnerability x68_dVuln2;
|
|
|
|
float xd0_;
|
|
|
|
float xd4_;
|
|
|
|
float xd8_;
|
|
|
|
float xdc_;
|
|
|
|
float xe0_;
|
|
|
|
float xe4_;
|
2019-06-12 02:05:17 +00:00
|
|
|
std::optional<CAnimationParameters> xe8_animParms1;
|
|
|
|
std::optional<CAnimationParameters> xf8_animParms2;
|
|
|
|
std::optional<CAnimationParameters> x108_animParms3;
|
|
|
|
std::optional<CAnimationParameters> x118_animParms4;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool x128_24_ : 1;
|
2017-07-05 18:34:12 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CMetroidData(CInputStream& in);
|
2019-01-31 20:44:05 +00:00
|
|
|
static u32 GetNumProperties() { return skNumProperties; }
|
2017-07-05 18:34:12 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CMetroid : public CPatterned {
|
2018-12-13 07:39:16 +00:00
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
bool x9bf_29_ : 1;
|
|
|
|
};
|
|
|
|
u32 _dummy = 0;
|
|
|
|
};
|
2019-01-31 20:44:05 +00:00
|
|
|
|
2017-07-05 18:34:12 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
DEFINE_PATTERNED(Metroid)
|
|
|
|
CMetroid(TUniqueId uid, std::string_view name, EFlavorType flavor, const CEntityInfo& info,
|
|
|
|
const zeus::CTransform& xf, CModelData&& mData, const CPatternedInfo& pInfo, const CActorParameters& aParms,
|
2019-01-31 20:44:05 +00:00
|
|
|
const CMetroidData& metroidData, TUniqueId);
|
2018-12-13 07:39:16 +00:00
|
|
|
bool GetX9BF_29() const { return x9bf_29_; }
|
2017-07-05 18:34:12 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde::MP1
|