Isle
Loading...
Searching...
No Matches
RaceState::Entry Struct Reference

[AI] Entry for an individual race event/state, holding its identifier, unknown field, and score. More...

#include <legorace.h>

Public Member Functions

 Entry ()
 [AI] Default constructor that initializes all fields to zero. More...
 
MxS16 GetUnknown0x02 ()
 [AI] Gets the unknown 0x02 field associated with this entry. More...
 
MxS16 GetHighScore ()
 [AI] Retrieves the race entry's current high score. More...
 
MxResult Serialize (LegoStorage *p_storage)
 [AI] Serializes or deserializes the entry using the specified LegoStorage. More...
 

Public Attributes

MxU8 m_id
 [AI] Unique race or entry ID (1-based, up to 5). More...
 
MxS16 m_unk0x02
 [AI] Unknown field (usage unclear). More...
 
MxS16 m_score
 [AI] High score for this race/entry. More...
 

Detailed Description

[AI] Entry for an individual race event/state, holding its identifier, unknown field, and score.

[AI] Serializes its state to/from a provided LegoStorage backend.

Definition at line 35 of file legorace.h.

Constructor & Destructor Documentation

◆ Entry()

RaceState::Entry::Entry ( )
inline

[AI] Default constructor that initializes all fields to zero.

Definition at line 40 of file legorace.h.

Member Function Documentation

◆ GetHighScore()

MxS16 RaceState::Entry::GetHighScore ( )
inline

[AI] Retrieves the race entry's current high score.

Returns
Value of m_score. [AI]

Definition at line 57 of file legorace.h.

◆ GetUnknown0x02()

MxS16 RaceState::Entry::GetUnknown0x02 ( )
inline

[AI] Gets the unknown 0x02 field associated with this entry.

Returns
Value of m_unk0x02. [AI]

Definition at line 51 of file legorace.h.

◆ Serialize()

MxResult RaceState::Entry::Serialize ( LegoStorage p_storage)
inline

[AI] Serializes or deserializes the entry using the specified LegoStorage.

Coordinates field-wise load or save based on mode.

Parameters
p_storageStorage handler for reading/writing state. [AI]
Returns
SUCCESS if completed, FAILURE otherwise. [AI]

Definition at line 64 of file legorace.h.

Member Data Documentation

◆ m_id

MxU8 RaceState::Entry::m_id

[AI] Unique race or entry ID (1-based, up to 5).

Definition at line 84 of file legorace.h.

◆ m_score

MxS16 RaceState::Entry::m_score

[AI] High score for this race/entry.

Definition at line 86 of file legorace.h.

◆ m_unk0x02

MxS16 RaceState::Entry::m_unk0x02

[AI] Unknown field (usage unclear).

Definition at line 85 of file legorace.h.


The documentation for this struct was generated from the following file: