mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
New code style refactor
This commit is contained in:
@@ -7,65 +7,62 @@
|
||||
#include "CAnimationParameters.hpp"
|
||||
#include "zeus/CVector3f.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
class CPatternedInfo
|
||||
{
|
||||
friend class CPatterned;
|
||||
float x0_mass;
|
||||
float x4_speed;
|
||||
float x8_turnSpeed;
|
||||
float xc_detectionRange;
|
||||
float x10_detectionHeightRange;
|
||||
float x14_dectectionAngle;
|
||||
float x18_minAttackRange;
|
||||
float x1c_maxAttackRange;
|
||||
float x20_averageAttackTime;
|
||||
float x24_attackTimeVariation;
|
||||
float x28_leashRadius;
|
||||
float x2c_playerLeashRadius;
|
||||
float x30_playerLeashTime;
|
||||
CDamageInfo x34_contactDamageInfo;
|
||||
float x50_damageWaitTime;
|
||||
CHealthInfo x54_healthInfo;
|
||||
CDamageVulnerability x5c_damageVulnerability;
|
||||
float xc4_halfExtent;
|
||||
float xc8_height;
|
||||
zeus::CVector3f xcc_bodyOrigin;
|
||||
float xd8_stepUpHeight;
|
||||
float xdc_xDamage;
|
||||
float xe0_frozenXDamage;
|
||||
float xe4_xDamageDelay;
|
||||
u16 xe8_deathSfx;
|
||||
CAnimationParameters xec_animParams;
|
||||
bool xf8_active;
|
||||
CAssetId xfc_stateMachineId;
|
||||
float x100_intoFreezeDur;
|
||||
float x104_outofFreezeDur;
|
||||
float x108_;
|
||||
class CPatternedInfo {
|
||||
friend class CPatterned;
|
||||
float x0_mass;
|
||||
float x4_speed;
|
||||
float x8_turnSpeed;
|
||||
float xc_detectionRange;
|
||||
float x10_detectionHeightRange;
|
||||
float x14_dectectionAngle;
|
||||
float x18_minAttackRange;
|
||||
float x1c_maxAttackRange;
|
||||
float x20_averageAttackTime;
|
||||
float x24_attackTimeVariation;
|
||||
float x28_leashRadius;
|
||||
float x2c_playerLeashRadius;
|
||||
float x30_playerLeashTime;
|
||||
CDamageInfo x34_contactDamageInfo;
|
||||
float x50_damageWaitTime;
|
||||
CHealthInfo x54_healthInfo;
|
||||
CDamageVulnerability x5c_damageVulnerability;
|
||||
float xc4_halfExtent;
|
||||
float xc8_height;
|
||||
zeus::CVector3f xcc_bodyOrigin;
|
||||
float xd8_stepUpHeight;
|
||||
float xdc_xDamage;
|
||||
float xe0_frozenXDamage;
|
||||
float xe4_xDamageDelay;
|
||||
u16 xe8_deathSfx;
|
||||
CAnimationParameters xec_animParams;
|
||||
bool xf8_active;
|
||||
CAssetId xfc_stateMachineId;
|
||||
float x100_intoFreezeDur;
|
||||
float x104_outofFreezeDur;
|
||||
float x108_;
|
||||
|
||||
u32 x10c_pathfindingIndex;
|
||||
zeus::CVector3f x110_particle1Scale;
|
||||
CAssetId x11c_particle1;
|
||||
u32 x10c_pathfindingIndex;
|
||||
zeus::CVector3f x110_particle1Scale;
|
||||
CAssetId x11c_particle1;
|
||||
|
||||
CAssetId x120_electric;
|
||||
zeus::CVector3f x124_particle2Scale;
|
||||
CAssetId x130_particle2;
|
||||
CAssetId x120_electric;
|
||||
zeus::CVector3f x124_particle2Scale;
|
||||
CAssetId x130_particle2;
|
||||
|
||||
u16 x134_iceShatterSfx = 0xffff;
|
||||
u16 x134_iceShatterSfx = 0xffff;
|
||||
|
||||
public:
|
||||
CPatternedInfo(CInputStream& in, u32 pcount);
|
||||
static std::pair<bool, u32> HasCorrectParameterCount(CInputStream& in);
|
||||
CPatternedInfo(CInputStream& in, u32 pcount);
|
||||
static std::pair<bool, u32> HasCorrectParameterCount(CInputStream& in);
|
||||
|
||||
float GetDetectionHeightRange() const { return x10_detectionHeightRange; }
|
||||
float GetHalfExtent() const { return xc4_halfExtent; }
|
||||
float GetHeight() const { return xc8_height; }
|
||||
const CHealthInfo& GetHealthInfo() const { return x54_healthInfo; }
|
||||
CAnimationParameters& GetAnimationParameters() { return xec_animParams; }
|
||||
const CAnimationParameters& GetAnimationParameters() const { return xec_animParams; }
|
||||
u32 GetPathfindingIndex() const { return x10c_pathfindingIndex; }
|
||||
float GetDetectionHeightRange() const { return x10_detectionHeightRange; }
|
||||
float GetHalfExtent() const { return xc4_halfExtent; }
|
||||
float GetHeight() const { return xc8_height; }
|
||||
const CHealthInfo& GetHealthInfo() const { return x54_healthInfo; }
|
||||
CAnimationParameters& GetAnimationParameters() { return xec_animParams; }
|
||||
const CAnimationParameters& GetAnimationParameters() const { return xec_animParams; }
|
||||
u32 GetPathfindingIndex() const { return x10c_pathfindingIndex; }
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user