mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Refactor public variable
This commit is contained in:
parent
80ef01666e
commit
63c9431f66
@ -215,7 +215,6 @@ class LegoGameState {
|
|||||||
void SetDirty(MxBool p_isDirty) { m_isDirty = p_isDirty; }
|
void SetDirty(MxBool p_isDirty) { m_isDirty = p_isDirty; }
|
||||||
void SetPreviousArea(Area p_previousArea) { m_previousArea = p_previousArea; }
|
void SetPreviousArea(Area p_previousArea) { m_previousArea = p_previousArea; }
|
||||||
void SetActorId(MxU8 p_actorId) { m_actorId = p_actorId; }
|
void SetActorId(MxU8 p_actorId) { m_actorId = p_actorId; }
|
||||||
void SetUnknown0x42c(Area p_unk0x42c) { m_unk0x42c = p_unk0x42c; }
|
|
||||||
Username* GetPlayersIndex(MxS32 p_index) { return &m_players[p_index]; }
|
Username* GetPlayersIndex(MxS32 p_index) { return &m_players[p_index]; }
|
||||||
MxS16 GetPlayerCount() { return m_playerCount; }
|
MxS16 GetPlayerCount() { return m_playerCount; }
|
||||||
LegoBackgroundColor* GetBackgroundColor() { return m_backgroundColor; }
|
LegoBackgroundColor* GetBackgroundColor() { return m_backgroundColor; }
|
||||||
|
|||||||
@ -1117,7 +1117,7 @@ MxU8 Infocenter::HandleControl(LegoControlManagerNotificationParam& p_param)
|
|||||||
actionToPlay = GameState()->GetCurrentAct() != LegoGameState::e_act1 ? InfomainScript::c_GoTo_RegBook_Red
|
actionToPlay = GameState()->GetCurrentAct() != LegoGameState::e_act1 ? InfomainScript::c_GoTo_RegBook_Red
|
||||||
: InfomainScript::c_GoTo_RegBook;
|
: InfomainScript::c_GoTo_RegBook;
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
GameState()->SetUnknown0x42c(GameState()->GetPreviousArea());
|
GameState()->m_unk0x42c = GameState()->GetPreviousArea();
|
||||||
InputManager()->DisableInputProcessing();
|
InputManager()->DisableInputProcessing();
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Mama_Ctl:
|
case InfomainScript::c_Mama_Ctl:
|
||||||
@ -1426,7 +1426,7 @@ void Infocenter::Reset()
|
|||||||
CharacterManager()->ReleaseAllActors();
|
CharacterManager()->ReleaseAllActors();
|
||||||
GameState()->SetCurrentAct(LegoGameState::e_act1);
|
GameState()->SetCurrentAct(LegoGameState::e_act1);
|
||||||
GameState()->SetPreviousArea(LegoGameState::e_undefined);
|
GameState()->SetPreviousArea(LegoGameState::e_undefined);
|
||||||
GameState()->SetUnknown0x42c(LegoGameState::e_undefined);
|
GameState()->m_unk0x42c = LegoGameState::e_undefined;
|
||||||
|
|
||||||
InitializeBitmaps();
|
InitializeBitmaps();
|
||||||
m_selectedCharacter = e_pepper;
|
m_selectedCharacter = e_pepper;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user