mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
CScriptMazeNode: Implement GenerateObjects & more structures
This commit is contained in:
@@ -3,28 +3,51 @@
|
||||
#include <array>
|
||||
#include <string_view>
|
||||
|
||||
#include "Runtime/CRandom16.hpp"
|
||||
#include "Runtime/RetroTypes.hpp"
|
||||
#include "Runtime/World/CActor.hpp"
|
||||
|
||||
#include <zeus/CVector3f.hpp>
|
||||
|
||||
namespace urde {
|
||||
struct CUnknownMazeNodeItem {
|
||||
bool x0_24_ : 1 = false;
|
||||
bool x0_25_ : 1 = false;
|
||||
bool x0_26_ : 1 = false;
|
||||
bool x0_27_ : 1 = false;
|
||||
bool x0_28_ : 1 = false;
|
||||
bool x0_29_ : 1 = false;
|
||||
bool x0_30_ : 1 = false;
|
||||
bool x0_31_ : 1 = false;
|
||||
bool x1_24_ : 1 = false;
|
||||
bool x1_25_ : 1 = false;
|
||||
bool x1_26_ : 1 = false;
|
||||
};
|
||||
class CUnknownMazeNode {
|
||||
CRandom16 x0_rand{0};
|
||||
std::array<CUnknownMazeNodeItem, 63> x4_arr{};
|
||||
s32 x84_;
|
||||
s32 x88_;
|
||||
s32 x8c_;
|
||||
s32 x90_;
|
||||
bool x94_24_initialized : 1 = false;
|
||||
|
||||
CUnknownMazeNode(s32 w1, s32 w2, s32 w3, s32 w4) : x84_(w1), x88_(w2), x8c_(w3), x90_(w4) {}
|
||||
};
|
||||
class CScriptMazeNode : public CActor {
|
||||
static std::array<u32, 300> sMazeSeeds;
|
||||
static std::array<s32, 300> sMazeSeeds;
|
||||
s32 xe8_;
|
||||
s32 xec_;
|
||||
s32 xf0_;
|
||||
TUniqueId xf4_ = kInvalidUniqueId;
|
||||
float xf8_ = 0.f;
|
||||
TUniqueId xfc_ = kInvalidUniqueId;
|
||||
zeus::CVector3f x100_;
|
||||
TUniqueId x10c_ = kInvalidUniqueId;
|
||||
zeus::CVector3f x110_;
|
||||
TUniqueId x11c_ = kInvalidUniqueId;
|
||||
zeus::CVector3f x120_;
|
||||
s32 x130_ = 0;
|
||||
s32 x134_ = 0;
|
||||
s32 x138_ = 0;
|
||||
TUniqueId xfc_actorId = kInvalidUniqueId;
|
||||
zeus::CVector3f x100_actorPos;
|
||||
TUniqueId x10c_triggerId = kInvalidUniqueId;
|
||||
zeus::CVector3f x110_triggerPos;
|
||||
TUniqueId x11c_effectId = kInvalidUniqueId;
|
||||
zeus::CVector3f x120_effectPos;
|
||||
std::vector<TUniqueId> x12c_;
|
||||
bool x13c_24_ : 1 = true;
|
||||
bool x13c_25_ : 1 = false;
|
||||
bool x13c_26_ : 1 = false;
|
||||
@@ -35,5 +58,8 @@ public:
|
||||
|
||||
void Accept(IVisitor& visitor) override;
|
||||
static void LoadMazeSeeds();
|
||||
|
||||
private:
|
||||
void GenerateObjects(CStateManager& mgr);
|
||||
};
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user