Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DayZProfilesOptions Class Reference

Private Member Functions

void DayZProfilesOptions ()
bool GetProfileOption (EDayZProfilesOptions option)
bool GetProfileOptionBool (EDayZProfilesOptions option)
bool GetProfileOptionDefault (EDayZProfilesOptions option)
bool GetProfileOptionDefaultBool (EDayZProfilesOptions option)
float GetProfileOptionDefaultFloat (EDayZProfilesOptions option)
int GetProfileOptionDefaultInt (EDayZProfilesOptions option)
float GetProfileOptionFloat (EDayZProfilesOptions option)
int GetProfileOptionInt (EDayZProfilesOptions option)
map< EDayZProfilesOptions, ref DayZProfilesOptionBoolGetProfileOptionMap ()
void RegisterProfileOption (EDayZProfilesOptions option, string profileOptionName, bool def=true)
void RegisterProfileOptionBool (EDayZProfilesOptions option, string profileOptionName, bool defaultValue=true)
void RegisterProfileOptionFloat (EDayZProfilesOptions option, string profileOptionName, float defaultValue=0.0)
void RegisterProfileOptionInt (EDayZProfilesOptions option, string profileOptionName, int defaultValue=0)
void ResetOptions ()
void ResetOptionsBool ()
void ResetOptionsFloat ()
void ResetOptionsInt ()
void SetProfileOption (EDayZProfilesOptions option, bool value)
void SetProfileOptionBool (EDayZProfilesOptions option, bool value)
void SetProfileOptionFloat (EDayZProfilesOptions option, float value)
void SetProfileOptionInt (EDayZProfilesOptions option, int value)

Private Attributes

ref map< EDayZProfilesOptions, ref DayZProfilesOptionm_DayZProfilesOptions
 DEPRECATED.
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBoolm_DayZProfilesOptionsBool
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloatm_DayZProfilesOptionsFloat
ref map< EDayZProfilesOptions, ref DayZProfilesOptionIntm_DayZProfilesOptionsInt
DayZGame m_Game

Static Private Attributes

static ref ScriptInvoker m_OnBoolOptionChanged = new ScriptInvoker()
static ref ScriptInvoker m_OnFloatOptionChanged = new ScriptInvoker()
static ref ScriptInvoker m_OnIntOptionChanged = new ScriptInvoker()

Detailed Description

Definition at line 404 of file dayzgame.c.

Constructor & Destructor Documentation

◆ DayZProfilesOptions()

void DayZProfilesOptions ( )
inlineprivate

Member Function Documentation

◆ GetProfileOption()

bool GetProfileOption ( EDayZProfilesOptions option)
inlineprivate

Definition at line 564 of file dayzgame.c.

References m_DayZProfilesOptionsBool.

Referenced by GetProfileOptionBool().

◆ GetProfileOptionBool()

bool GetProfileOptionBool ( EDayZProfilesOptions option)
inlineprivate

Definition at line 575 of file dayzgame.c.

References GetProfileOption().

◆ GetProfileOptionDefault()

bool GetProfileOptionDefault ( EDayZProfilesOptions option)
inlineprivate

Definition at line 602 of file dayzgame.c.

References GetProfileOptionDefaultBool().

◆ GetProfileOptionDefaultBool()

bool GetProfileOptionDefaultBool ( EDayZProfilesOptions option)
inlineprivate

Definition at line 607 of file dayzgame.c.

References ErrorEx, and m_DayZProfilesOptionsBool.

Referenced by GetProfileOptionDefault().

◆ GetProfileOptionDefaultFloat()

float GetProfileOptionDefaultFloat ( EDayZProfilesOptions option)
inlineprivate

Definition at line 631 of file dayzgame.c.

References ErrorEx, and m_DayZProfilesOptionsFloat.

◆ GetProfileOptionDefaultInt()

int GetProfileOptionDefaultInt ( EDayZProfilesOptions option)
inlineprivate

Definition at line 619 of file dayzgame.c.

References ErrorEx, and m_DayZProfilesOptionsInt.

◆ GetProfileOptionFloat()

float GetProfileOptionFloat ( EDayZProfilesOptions option)
inlineprivate

Definition at line 591 of file dayzgame.c.

References m_DayZProfilesOptionsFloat.

◆ GetProfileOptionInt()

int GetProfileOptionInt ( EDayZProfilesOptions option)
inlineprivate

Definition at line 580 of file dayzgame.c.

References m_DayZProfilesOptionsInt.

◆ GetProfileOptionMap()

map< EDayZProfilesOptions, ref DayZProfilesOptionBool > GetProfileOptionMap ( )
inlineprivate

Definition at line 643 of file dayzgame.c.

References m_DayZProfilesOptions.

◆ RegisterProfileOption()

void RegisterProfileOption ( EDayZProfilesOptions option,
string profileOptionName,
bool def = true )
inlineprivate

init of DayZProfilesOption - profileOptionName, value from Profiles files, or use default value

Definition at line 421 of file dayzgame.c.

References GetProfileValueBool(), m_DayZProfilesOptionsBool, and SetProfileOptionBool().

Referenced by RegisterProfileOptionBool().

◆ RegisterProfileOptionBool()

void RegisterProfileOptionBool ( EDayZProfilesOptions option,
string profileOptionName,
bool defaultValue = true )
inlineprivate

Definition at line 433 of file dayzgame.c.

References RegisterProfileOption().

◆ RegisterProfileOptionFloat()

void RegisterProfileOptionFloat ( EDayZProfilesOptions option,
string profileOptionName,
float defaultValue = 0.0 )
inlineprivate

init of DayZProfilesOption - profileOptionName, value from Profiles files, or use default value

Definition at line 452 of file dayzgame.c.

References g_Game, m_DayZProfilesOptionsFloat, SetProfileOptionFloat(), and string::ToFloat().

◆ RegisterProfileOptionInt()

void RegisterProfileOptionInt ( EDayZProfilesOptions option,
string profileOptionName,
int defaultValue = 0 )
inlineprivate

init of DayZProfilesOption - profileOptionName, value from Profiles files, or use default value

Definition at line 438 of file dayzgame.c.

References g_Game, m_DayZProfilesOptionsInt, SetProfileOptionInt(), and string::ToInt().

◆ ResetOptions()

void ResetOptions ( )
inlineprivate

Definition at line 480 of file dayzgame.c.

References ResetOptionsBool().

◆ ResetOptionsBool()

void ResetOptionsBool ( )
inlineprivate

Definition at line 466 of file dayzgame.c.

References GetProfileValueBool(), m_DayZProfilesOptionsBool, and SetProfileOptionBool().

Referenced by ResetOptions().

◆ ResetOptionsFloat()

void ResetOptionsFloat ( )
inlineprivate

◆ ResetOptionsInt()

void ResetOptionsInt ( )
inlineprivate

Definition at line 485 of file dayzgame.c.

References g_Game, m_DayZProfilesOptionsInt, SetProfileOptionInt(), and string::ToInt().

◆ SetProfileOption()

void SetProfileOption ( EDayZProfilesOptions option,
bool value )
inlineprivate

Definition at line 517 of file dayzgame.c.

References g_Game, m_DayZProfilesOptionsBool, m_OnBoolOptionChanged, and bool::ToString().

Referenced by SetProfileOptionBool().

◆ SetProfileOptionBool()

void SetProfileOptionBool ( EDayZProfilesOptions option,
bool value )
inlineprivate

Definition at line 531 of file dayzgame.c.

References SetProfileOption().

Referenced by RegisterProfileOption(), and ResetOptionsBool().

◆ SetProfileOptionFloat()

void SetProfileOptionFloat ( EDayZProfilesOptions option,
float value )
inlineprivate

◆ SetProfileOptionInt()

void SetProfileOptionInt ( EDayZProfilesOptions option,
int value )
inlineprivate

Definition at line 536 of file dayzgame.c.

References g_Game, m_DayZProfilesOptionsInt, and m_OnIntOptionChanged.

Referenced by RegisterProfileOptionInt(), and ResetOptionsInt().

Field Documentation

◆ m_DayZProfilesOptions

ref map<EDayZProfilesOptions, ref DayZProfilesOption> m_DayZProfilesOptions
private

DEPRECATED.

Definition at line 653 of file dayzgame.c.

Referenced by GetProfileOptionMap().

◆ m_DayZProfilesOptionsBool

◆ m_DayZProfilesOptionsFloat

◆ m_DayZProfilesOptionsInt

◆ m_Game

DayZGame m_Game
private

Definition at line 654 of file dayzgame.c.

◆ m_OnBoolOptionChanged

ref ScriptInvoker m_OnBoolOptionChanged = new ScriptInvoker()
staticprivate

Definition at line 411 of file dayzgame.c.

Referenced by SetProfileOption().

◆ m_OnFloatOptionChanged

ref ScriptInvoker m_OnFloatOptionChanged = new ScriptInvoker()
staticprivate

Definition at line 412 of file dayzgame.c.

Referenced by SetProfileOptionFloat().

◆ m_OnIntOptionChanged

ref ScriptInvoker m_OnIntOptionChanged = new ScriptInvoker()
staticprivate

Definition at line 410 of file dayzgame.c.

Referenced by DynamicMusicPlayer(), and SetProfileOptionInt().


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