Implement Save, Load, DeleteState (#602)

* Implement Save, Load, DeleteState

* WIP

* WIP

* Match LegoGameState::Save

* Spacing

* Match LegoGameState::DeleteState()

* More match

* Match

* Move vars

* Other fixes

* Rename

* Fix error

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Nathan M Gilbert
2024-02-27 15:04:17 -05:00
committed by GitHub
parent c0a988b0fe
commit 4d84157888
16 changed files with 300 additions and 54 deletions

View File

@@ -120,8 +120,9 @@ public:
LegoGameState();
~LegoGameState();
MxResult Load(MxULong);
MxResult Save(MxULong);
MxResult DeleteState();
MxResult Load(MxULong);
void SerializePlayersInfo(MxS16);
void SerializeScoreHistory(MxS16 p_flags);
void SetSavePath(char*);
@@ -152,7 +153,7 @@ public:
void SetCurrentAct(Act p_currentAct);
void FindLoadedAct();
void SetActor(MxU8 p_actorId);
void FUN_10039940();
void ResetROI();
private:
void RegisterState(LegoState* p_state);