Isle
Loading...
Searching...
No Matches
LegoGameState::Username Struct Reference

Player "username", stored as 7 short integers (character codes). More...

#include <legogamestate.h>

Public Member Functions

 Username ()
 
void Set (Username &p_other)
 Set this username by copying another. More...
 
MxResult Serialize (LegoStorage *p_storage)
 Reads or writes username as S16 array to/from the given storage. More...
 
Usernameoperator= (const Username &p_other)
 Assignment, deep-copy of letter buffer [AI]. More...
 

Public Attributes

MxS16 m_letters [7]
 Array of 7 wide characters: player name (filled by registration). [AI]. More...
 

Detailed Description

Player "username", stored as 7 short integers (character codes).

[AI]

Definition at line 164 of file legogamestate.h.

Constructor & Destructor Documentation

◆ Username()

LegoGameState::Username::Username ( )

Definition at line 1365 of file legogamestate.cpp.

Member Function Documentation

◆ operator=()

LegoGameState::Username & LegoGameState::Username::operator= ( const Username p_other)

Assignment, deep-copy of letter buffer [AI].

Definition at line 1390 of file legogamestate.cpp.

◆ Serialize()

MxResult LegoGameState::Username::Serialize ( LegoStorage p_storage)

Reads or writes username as S16 array to/from the given storage.

[AI]

Parameters
p_storageFile storage manager for serialization. [AI]

Definition at line 1372 of file legogamestate.cpp.

◆ Set()

void LegoGameState::Username::Set ( Username p_other)
inline

Set this username by copying another.

[AI]

Parameters
p_otherUsername to copy from. [AI]

Definition at line 168 of file legogamestate.h.

Member Data Documentation

◆ m_letters

MxS16 LegoGameState::Username::m_letters[7]

Array of 7 wide characters: player name (filled by registration). [AI].

Definition at line 176 of file legogamestate.h.


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