2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 00:27:42 +00:00

CScriptMazeNode: Finish initial implementation of Reset

This commit is contained in:
2020-09-19 15:52:15 -04:00
parent 47f456e4e7
commit cf68c7dd9d
2 changed files with 90 additions and 9 deletions

View File

@@ -10,6 +10,9 @@
#include <zeus/CVector3f.hpp>
namespace urde {
constexpr u32 skMazeRows = 7;
constexpr u32 skMazeColumns = 9;
struct CScriptMazeStateCell {
bool x0_24_ : 1 = false;
bool x0_25_ : 1 = false;
@@ -26,7 +29,7 @@ struct CScriptMazeStateCell {
class CScriptMazeState {
CRandom16 x0_rand{0};
std::array<CScriptMazeStateCell, 63> x4_arr{};
std::array<CScriptMazeStateCell, skMazeRows * skMazeColumns> x4_arr{};
s32 x84_;
s32 x88_;
s32 x8c_;
@@ -37,6 +40,7 @@ public:
CScriptMazeState(s32 w1, s32 w2, s32 w3, s32 w4) : x84_(w1), x88_(w2), x8c_(w3), x90_(w4) {}
void Reset(s32 seed);
void Initialize();
void sub_802899c8();
};
class CScriptMazeNode : public CActor {