mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
67 lines
1003 B
C++
67 lines
1003 B
C++
#pragma once
|
|
|
|
#include <revolution.h>
|
|
|
|
class MarioActor;
|
|
|
|
struct Constants {
|
|
|
|
u8 _0[0x426]; // dummy variable
|
|
u16 _426;
|
|
u8 _428[0x8C];
|
|
f32 _4B4;
|
|
u8 _4B8[0x28];
|
|
f32 _4E0;
|
|
f32 _4E4;
|
|
f32 _4E8;
|
|
f32 _4EC[4];
|
|
f32 _4FC;
|
|
f32 _500;
|
|
u8 _504[0x10];
|
|
f32 _514;
|
|
f32 _518;
|
|
u16 _51C;
|
|
u16 _51E;
|
|
f32 _520;
|
|
f32 _524;
|
|
u16 _528;
|
|
f32 _52C;
|
|
f32 _530;
|
|
f32 _534;
|
|
f32 _538;
|
|
f32 _53C;
|
|
f32 _540;
|
|
f32 _544;
|
|
f32 _548;
|
|
f32 _54C;
|
|
u16 _550;
|
|
u16 _552;
|
|
u16 _554;
|
|
f32 _558;
|
|
u16 _55C;
|
|
u16 _55E;
|
|
u16 _560;
|
|
u16 _562;
|
|
u16 _564;
|
|
u16 _566;
|
|
u8 _568[0x50];
|
|
f32 _5B8;
|
|
f32 _5BC;
|
|
u8 _5C0[0x108];
|
|
u16 _6C8;
|
|
};
|
|
|
|
inline f32 getSwimValue(f32, u32 idx, const Constants *c)
|
|
{
|
|
return c->_4EC[idx];
|
|
}
|
|
|
|
class MarioConst {
|
|
public:
|
|
MarioConst();
|
|
inline const Constants *getConstants() const { return _0[_8]; }
|
|
|
|
const Constants *_0[2];
|
|
u32 _8; // luigi toggle?
|
|
};
|