mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-30 11:41:16 +00:00
Rename
This commit is contained in:
parent
eb0bcb9837
commit
096487b2cb
@ -94,7 +94,7 @@ class LegoGameState {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// SIZE 0x2c
|
// SIZE 0x2c
|
||||||
struct Score {
|
struct ScoreItem {
|
||||||
undefined2 m_unk0x00; // 0x00
|
undefined2 m_unk0x00; // 0x00
|
||||||
MxU8 m_state[25]; // 0x02
|
MxU8 m_state[25]; // 0x02
|
||||||
ScoreName m_name; // 0x1c
|
ScoreName m_name; // 0x1c
|
||||||
@ -106,10 +106,10 @@ class LegoGameState {
|
|||||||
void WriteScoreHistory();
|
void WriteScoreHistory();
|
||||||
void FUN_1003ccf0(LegoFile&);
|
void FUN_1003ccf0(LegoFile&);
|
||||||
|
|
||||||
inline Score* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
|
inline ScoreItem* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
|
||||||
|
|
||||||
MxS16 m_count; // 0x00
|
MxS16 m_count; // 0x00
|
||||||
Score m_scores[20]; // 0x02
|
ScoreItem m_scores[20]; // 0x02
|
||||||
};
|
};
|
||||||
|
|
||||||
LegoGameState();
|
LegoGameState();
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(LegoGameState::ScoreName, 0xe)
|
DECOMP_SIZE_ASSERT(LegoGameState::ScoreName, 0xe)
|
||||||
DECOMP_SIZE_ASSERT(LegoGameState::Score, 0x2c)
|
DECOMP_SIZE_ASSERT(LegoGameState::ScoreItem, 0x2c)
|
||||||
DECOMP_SIZE_ASSERT(LegoGameState::Scores, 0x372)
|
DECOMP_SIZE_ASSERT(LegoGameState::Scores, 0x372)
|
||||||
DECOMP_SIZE_ASSERT(LegoGameState, 0x430)
|
DECOMP_SIZE_ASSERT(LegoGameState, 0x430)
|
||||||
|
|
||||||
|
|||||||
@ -94,7 +94,7 @@ void HistoryBook::ReadyWorld()
|
|||||||
MxS32 scoreY = 0x79;
|
MxS32 scoreY = 0x79;
|
||||||
|
|
||||||
for (MxS16 scoreIndex = 0; scoreIndex < GameState()->GetScores()->m_count; scoreIndex++) {
|
for (MxS16 scoreIndex = 0; scoreIndex < GameState()->GetScores()->m_count; scoreIndex++) {
|
||||||
LegoGameState::Score* score = GameState()->GetScores()->GetScore(scoreIndex);
|
LegoGameState::ScoreItem* score = GameState()->GetScores()->GetScore(scoreIndex);
|
||||||
|
|
||||||
MxStillPresenter** scorebox = &m_scores[scoreIndex];
|
MxStillPresenter** scorebox = &m_scores[scoreIndex];
|
||||||
*scorebox = scoreboxMaster->Clone();
|
*scorebox = scoreboxMaster->Clone();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user