fix legogamestate structure, documentation tweaks

This commit is contained in:
Ramen2X 2024-03-15 15:34:01 -04:00
parent 79610d12ec
commit cf9d6567c7
2 changed files with 7 additions and 4 deletions

View File

@ -168,7 +168,7 @@ class LegoGameState {
void SetCurrentAct(Act p_currentAct);
void FindLoadedAct();
public:
private:
void RegisterState(LegoState* p_state);
MxResult WriteVariable(LegoStorage* p_storage, MxVariableTable* p_from, const char* p_variableName);
MxResult WriteEndOfVariables(LegoStorage* p_storage);
@ -187,7 +187,10 @@ class LegoGameState {
LegoFullScreenMovie* m_fullScreenMovie; // 0x20
MxU16 m_unk0x24; // 0x24
MxS16 m_playerCount; // 0x26
public:
// This member is accessed directly by foreign classes
Username m_players[9]; // 0x28
private:
History m_history; // 0xa6
undefined2 m_unk0x41a; // 0x41a
undefined4 m_unk0x41c; // 0x41c

View File

@ -153,14 +153,14 @@ void RegistrationBook::ReadyWorld()
m_checkmark[i]->Enable(TRUE);
}
// Start building the player name using a two-dimensional array
// Start building the player names using a two-dimensional array
m_name[i][j] = m_alphabet[gameState->m_players[i].m_letters[j]]->Clone();
// Enable the presenter to actually show the letter
// Enable the presenter to actually show the letter in the grid
m_name[i][j]->Enable(TRUE);
m_name[i][j]->SetTickleState(MxPresenter::e_repeating);
m_name[i][j]->SetPosition((23 * j + 343), 27 * i + 121);
m_name[i][j]->SetPosition(23 * j + 343, 27 * i + 121);
}
}
}