DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
MenuDefaultCharacterData Class Reference

Private Member Functions

void MenuDefaultCharacterData ()
 
void Init ()
 
void ClearAttachmentsMap ()
 
void SetDefaultAttachment (int slotID, string type)
 
void GenerateRandomEquip ()
 
void EquipDefaultCharacter (Man player)
 
void SerializeCharacterData (ParamsWriteContext ctx)
 serializes data into a param array to be used by "StoreLoginData(notnull array<ref Param> params);"
 
bool DeserializeCharacterData (ParamsReadContext ctx)
 
void SetCharacterName (string name)
 
string GetCharacterName ()
 
void SetCharacterType (string character_type)
 
string GetCharacterType ()
 
void SetRandomCharacterForced (bool state)
 
bool IsRandomCharacterForced ()
 
map< int, stringGetAttachmentMap ()
 
void DumpAttMapContents ()
 

Private Attributes

string m_CharacterName
 
string m_CharacterType
 
ref map< int, stringm_AttachmentsMap
 
bool m_ForceRandomCharacter
 

Constructor & Destructor Documentation

◆ MenuDefaultCharacterData()

void MenuDefaultCharacterData ( )
inlineprivate

References Init().

Member Function Documentation

◆ ClearAttachmentsMap()

void ClearAttachmentsMap ( )
inlineprivate

References m_AttachmentsMap.

Referenced by GenerateRandomEquip().

◆ DeserializeCharacterData()

bool DeserializeCharacterData ( ParamsReadContext  ctx)
inlineprivate

◆ DumpAttMapContents()

void DumpAttMapContents ( )
inlineprivate

References m_AttachmentsMap, and Print().

◆ EquipDefaultCharacter()

void EquipDefaultCharacter ( Man  player)
inlineprivate

◆ GenerateRandomEquip()

void GenerateRandomEquip ( )
inlineprivate

◆ GetAttachmentMap()

map< int, string > GetAttachmentMap ( )
inlineprivate

References m_AttachmentsMap.

Referenced by MissionBase::EquipCharacter().

◆ GetCharacterName()

string GetCharacterName ( )
inlineprivate

References m_CharacterName.

◆ GetCharacterType()

string GetCharacterType ( )
inlineprivate

References m_CharacterType.

◆ Init()

void Init ( )
inlineprivate

References g_Game, and m_AttachmentsMap.

Referenced by MenuDefaultCharacterData().

◆ IsRandomCharacterForced()

bool IsRandomCharacterForced ( )
inlineprivate

◆ SerializeCharacterData()

void SerializeCharacterData ( ParamsWriteContext  ctx)
inlineprivate

serializes data into a param array to be used by "StoreLoginData(notnull array<ref Param> params);"

References m_AttachmentsMap, m_CharacterName, m_CharacterType, m_ForceRandomCharacter, and Serializer::Write().

Referenced by MenuData::OnSetDefaultCharacter(), and CGame::StoreLoginDataPrepare().

◆ SetCharacterName()

void SetCharacterName ( string  name)
inlineprivate

References m_CharacterName, and name.

◆ SetCharacterType()

void SetCharacterType ( string  character_type)
inlineprivate

References m_CharacterType.

◆ SetDefaultAttachment()

void SetDefaultAttachment ( int  slotID,
string  type 
)
inlineprivate

References m_AttachmentsMap.

Referenced by GenerateRandomEquip().

◆ SetRandomCharacterForced()

void SetRandomCharacterForced ( bool  state)
inlineprivate

Field Documentation

◆ m_AttachmentsMap

◆ m_CharacterName

◆ m_CharacterType

◆ m_ForceRandomCharacter


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