mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Order symbols until end of LegoGameState (#1340)
* Order `Ambulance` * More ordering * Order until `LegoGameState` * Move
This commit is contained in:
committed by
GitHub
parent
e8c856c585
commit
e1ce96c473
@@ -13,6 +13,40 @@ class AmbulanceMissionState : public LegoState {
|
||||
public:
|
||||
AmbulanceMissionState();
|
||||
|
||||
// FUNCTION: LEGO1 0x10037440
|
||||
// FUNCTION: BETA10 0x10024480
|
||||
MxResult Serialize(LegoStorage* p_storage) override
|
||||
{
|
||||
LegoState::Serialize(p_storage);
|
||||
|
||||
if (p_storage->IsReadMode()) {
|
||||
p_storage->ReadS16(m_peScore);
|
||||
p_storage->ReadS16(m_maScore);
|
||||
p_storage->ReadS16(m_paScore);
|
||||
p_storage->ReadS16(m_niScore);
|
||||
p_storage->ReadS16(m_laScore);
|
||||
p_storage->ReadS16(m_peHighScore);
|
||||
p_storage->ReadS16(m_maHighScore);
|
||||
p_storage->ReadS16(m_paHighScore);
|
||||
p_storage->ReadS16(m_niHighScore);
|
||||
p_storage->ReadS16(m_laHighScore);
|
||||
}
|
||||
else if (p_storage->IsWriteMode()) {
|
||||
p_storage->WriteS16(m_peScore);
|
||||
p_storage->WriteS16(m_maScore);
|
||||
p_storage->WriteS16(m_paScore);
|
||||
p_storage->WriteS16(m_niScore);
|
||||
p_storage->WriteS16(m_laScore);
|
||||
p_storage->WriteS16(m_peHighScore);
|
||||
p_storage->WriteS16(m_maHighScore);
|
||||
p_storage->WriteS16(m_paHighScore);
|
||||
p_storage->WriteS16(m_niHighScore);
|
||||
p_storage->WriteS16(m_laHighScore);
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
} // vtable+0x1c
|
||||
|
||||
// FUNCTION: LEGO1 0x10037600
|
||||
// FUNCTION: BETA10 0x100246c0
|
||||
const char* ClassName() const override // vtable+0x0c
|
||||
@@ -27,8 +61,6 @@ public:
|
||||
return !strcmp(p_name, AmbulanceMissionState::ClassName()) || LegoState::IsA(p_name);
|
||||
}
|
||||
|
||||
MxResult Serialize(LegoStorage* p_storage) override; // vtable+0x1c
|
||||
|
||||
// FUNCTION: BETA10 0x10088770
|
||||
MxS16 GetHighScore(MxU8 p_actorId)
|
||||
{
|
||||
@@ -118,6 +150,9 @@ public:
|
||||
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
||||
MxResult Tickle() override; // vtable+0x08
|
||||
|
||||
// FUNCTION: LEGO1 0x10035f90
|
||||
void Destroy(MxBool p_fromDestructor) override {} // vtable+0x1c
|
||||
|
||||
// FUNCTION: LEGO1 0x10035fa0
|
||||
// FUNCTION: BETA10 0x100240b0
|
||||
const char* ClassName() const override // vtable+0x0c
|
||||
@@ -133,7 +168,6 @@ public:
|
||||
}
|
||||
|
||||
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
||||
void Destroy(MxBool p_fromDestructor) override; // vtable+0x1c
|
||||
void Animate(float p_time) override; // vtable+0x70
|
||||
MxLong HandleClick() override; // vtable+0xcc
|
||||
MxLong HandleControl(LegoControlManagerNotificationParam& p_param) override; // vtable+0xd4
|
||||
|
||||
@@ -16,6 +16,9 @@ public:
|
||||
|
||||
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
||||
|
||||
// FUNCTION: LEGO1 0x100377a0
|
||||
MxBool VTable0x5c() override { return TRUE; } // vtable+0x5c
|
||||
|
||||
// FUNCTION: LEGO1 0x100377b0
|
||||
// FUNCTION: BETA10 0x10032790
|
||||
const char* ClassName() const override // vtable+0x0c
|
||||
@@ -32,12 +35,8 @@ public:
|
||||
|
||||
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
||||
void ReadyWorld() override; // vtable+0x50
|
||||
|
||||
// FUNCTION: LEGO1 0x100377a0
|
||||
MxBool VTable0x5c() override { return TRUE; } // vtable+0x5c
|
||||
|
||||
MxBool Escape() override; // vtable+0x64
|
||||
void Enable(MxBool p_enable) override; // vtable+0x68
|
||||
MxBool Escape() override; // vtable+0x64
|
||||
void Enable(MxBool p_enable) override; // vtable+0x68
|
||||
|
||||
// SYNTHETIC: LEGO1 0x100378d0
|
||||
// InfocenterDoor::`scalar deleting destructor'
|
||||
|
||||
@@ -131,12 +131,6 @@ public:
|
||||
|
||||
void FUN_1001b660();
|
||||
|
||||
void Reset()
|
||||
{
|
||||
m_roi->SetVisibility(TRUE);
|
||||
SetActorState(c_initial);
|
||||
}
|
||||
|
||||
void SetWorld(LegoWorld* p_world) { m_world = p_world; }
|
||||
|
||||
static void RegisterSpawnLocations();
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#ifndef LEGOBACKGROUNDCOLOR_H
|
||||
#define LEGOBACKGROUNDCOLOR_H
|
||||
|
||||
#include "mxvariable.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100d74a8
|
||||
// SIZE 0x30
|
||||
class LegoBackgroundColor : public MxVariable {
|
||||
public:
|
||||
LegoBackgroundColor(const char* p_key, const char* p_value);
|
||||
|
||||
void SetValue(const char* p_colorString) override;
|
||||
void SetLightColor(float p_r, float p_g, float p_b);
|
||||
void SetLightColor();
|
||||
void ToggleDayNight(MxBool);
|
||||
void ToggleSkyColor();
|
||||
|
||||
private:
|
||||
float m_h;
|
||||
float m_s;
|
||||
float m_v;
|
||||
};
|
||||
|
||||
#endif // LEGOBACKGROUNDCOLOR_H
|
||||
@@ -4,9 +4,9 @@
|
||||
#include "decomp.h"
|
||||
#include "mxstl/stlcompat.h"
|
||||
#include "mxtypes.h"
|
||||
#include "mxvariable.h"
|
||||
#include "roi/legoroi.h"
|
||||
|
||||
class CustomizeAnimFileVariable;
|
||||
class LegoActor;
|
||||
class LegoExtraActor;
|
||||
class LegoStorage;
|
||||
@@ -45,6 +45,15 @@ struct LegoActorInfo;
|
||||
|
||||
typedef map<char*, LegoCharacter*, LegoCharacterComparator> LegoCharacterMap;
|
||||
|
||||
// VTABLE: LEGO1 0x100da878
|
||||
// SIZE 0x24
|
||||
class CustomizeAnimFileVariable : public MxVariable {
|
||||
public:
|
||||
CustomizeAnimFileVariable(const char* p_key);
|
||||
|
||||
void SetValue(const char* p_value) override; // vtable+0x04
|
||||
};
|
||||
|
||||
// SIZE 0x08
|
||||
class LegoCharacterManager {
|
||||
public:
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#ifndef LEGOFULLSCREENMOVIE_H
|
||||
#define LEGOFULLSCREENMOVIE_H
|
||||
|
||||
#include "mxvariable.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100d74b8
|
||||
// SIZE 0x24
|
||||
class LegoFullScreenMovie : public MxVariable {
|
||||
public:
|
||||
LegoFullScreenMovie(const char* p_key, const char* p_value);
|
||||
void SetValue(const char* p_option) override;
|
||||
};
|
||||
|
||||
#endif // LEGOFULLSCREENMOVIE_H
|
||||
@@ -4,15 +4,13 @@
|
||||
#include "actionsfwd.h"
|
||||
#include "decomp.h"
|
||||
#include "mxtypes.h"
|
||||
#include "mxvariable.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
class LegoBackgroundColor;
|
||||
class LegoFile;
|
||||
class LegoFullScreenMovie;
|
||||
class LegoState;
|
||||
class LegoStorage;
|
||||
class MxVariable;
|
||||
class MxVariableTable;
|
||||
class MxString;
|
||||
|
||||
@@ -24,6 +22,34 @@ struct ColorStringStruct {
|
||||
const char* m_colorName; // 0x04
|
||||
};
|
||||
|
||||
// VTABLE: LEGO1 0x100d74a8
|
||||
// SIZE 0x30
|
||||
class LegoBackgroundColor : public MxVariable {
|
||||
public:
|
||||
LegoBackgroundColor(const char* p_key, const char* p_value);
|
||||
|
||||
void SetValue(const char* p_colorString) override; // vtable+0x04
|
||||
|
||||
void SetLightColor(float p_r, float p_g, float p_b);
|
||||
void SetLightColor();
|
||||
void ToggleDayNight(MxBool p_sun);
|
||||
void ToggleSkyColor();
|
||||
|
||||
private:
|
||||
float m_h; // 0x24
|
||||
float m_s; // 0x28
|
||||
float m_v; // 0x2c
|
||||
};
|
||||
|
||||
// VTABLE: LEGO1 0x100d74b8
|
||||
// SIZE 0x24
|
||||
class LegoFullScreenMovie : public MxVariable {
|
||||
public:
|
||||
LegoFullScreenMovie(const char* p_key, const char* p_value);
|
||||
|
||||
void SetValue(const char* p_option) override; // vtable+0x04
|
||||
};
|
||||
|
||||
// SIZE 0x430
|
||||
class LegoGameState {
|
||||
public:
|
||||
@@ -132,7 +158,7 @@ public:
|
||||
History();
|
||||
void WriteScoreHistory();
|
||||
MxResult Serialize(LegoStorage* p_storage);
|
||||
ScoreItem* FUN_1003cc90(Username* p_player, MxU16 p_unk0x24, MxS32& p_unk0x2c);
|
||||
ScoreItem* FUN_1003cc90(Username* p_player, MxS16 p_unk0x24, MxS32& p_unk0x2c);
|
||||
|
||||
// FUNCTION: BETA10 0x1002c2b0
|
||||
MxS16 GetCount() { return m_count; }
|
||||
|
||||
@@ -54,13 +54,4 @@ public:
|
||||
void SetValue(const char* p_value) override; // vtable+0x04
|
||||
};
|
||||
|
||||
// VTABLE: LEGO1 0x100da878
|
||||
// SIZE 0x24
|
||||
class CustomizeAnimFileVariable : public MxVariable {
|
||||
public:
|
||||
CustomizeAnimFileVariable(const char* p_key);
|
||||
|
||||
void SetValue(const char* p_value) override; // vtable+0x04
|
||||
};
|
||||
|
||||
#endif // LEGOVARIABLES_H
|
||||
|
||||
Reference in New Issue
Block a user