Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс DayZProfilesOptions

Закрытые члены

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

Закрытые данные

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

Закрытые статические данные

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

Подробное описание

Конструктор(ы)

◆ DayZProfilesOptions()

void DayZProfilesOptions ( )
inlineprivate
408 {
412 }
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
Definition DayZGame.c:401
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
Definition DayZGame.c:399
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
Definition DayZGame.c:400
Definition EntityAI.c:95

Перекрестные ссылки m_DayZProfilesOptionsBool, m_DayZProfilesOptionsFloat и m_DayZProfilesOptionsInt.

Методы

◆ GetProfileOption()

bool GetProfileOption ( EDayZProfilesOptions option)
inlineprivate
558 {
560 {
562 return po.param2;
563 }
564
565 return true;
566 }

Перекрестные ссылки m_DayZProfilesOptionsBool.

Используется в GetProfileOptionBool().

◆ GetProfileOptionBool()

bool GetProfileOptionBool ( EDayZProfilesOptions option)
inlineprivate
569 {
570 return GetProfileOption(option);
571 }
bool GetProfileOption(EDayZProfilesOptions option)
Definition DayZGame.c:557

Перекрестные ссылки GetProfileOption().

◆ GetProfileOptionDefault()

bool GetProfileOptionDefault ( EDayZProfilesOptions option)
inlineprivate
596 {
598 }
bool GetProfileOptionDefaultBool(EDayZProfilesOptions option)
Definition DayZGame.c:600

Перекрестные ссылки GetProfileOptionDefaultBool().

◆ GetProfileOptionDefaultBool()

bool GetProfileOptionDefaultBool ( EDayZProfilesOptions option)
inlineprivate
601 {
603 {
605 return po.param3;
606 }
607
608 ErrorEx("Invalid profile option id! Returning 'true'.", ErrorExSeverity.WARNING);
609 return true;
610 }
ErrorExSeverity
Definition EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx и m_DayZProfilesOptionsBool.

Используется в GetProfileOptionDefault().

◆ GetProfileOptionDefaultFloat()

float GetProfileOptionDefaultFloat ( EDayZProfilesOptions option)
inlineprivate
625 {
627 {
629 return po.param3;
630 }
631
632 ErrorEx("Invalid profile option id! Returning '0.0'.", ErrorExSeverity.WARNING);
633 return 0.0;
634 }

Перекрестные ссылки ErrorEx и m_DayZProfilesOptionsFloat.

◆ GetProfileOptionDefaultInt()

int GetProfileOptionDefaultInt ( EDayZProfilesOptions option)
inlineprivate
613 {
615 {
617 return po.param3;
618 }
619
620 ErrorEx("Invalid profile option id! Returning '0'.", ErrorExSeverity.WARNING);
621 return 0;
622 }

Перекрестные ссылки ErrorEx и m_DayZProfilesOptionsInt.

◆ GetProfileOptionFloat()

float GetProfileOptionFloat ( EDayZProfilesOptions option)
inlineprivate
585 {
587 {
589 return po.param2;
590 }
591
592 return 0.0;
593 }

Перекрестные ссылки m_DayZProfilesOptionsFloat.

◆ GetProfileOptionInt()

int GetProfileOptionInt ( EDayZProfilesOptions option)
inlineprivate
574 {
576 {
578 return po.param2;
579 }
580
581 return 0;
582 }

Перекрестные ссылки m_DayZProfilesOptionsInt.

◆ GetProfileOptionMap()

map< EDayZProfilesOptions, ref DayZProfilesOptionBool > GetProfileOptionMap ( )
inlineprivate
637 {
640
641 return null;
642 }
ref map< EDayZProfilesOptions, ref DayZProfilesOption > m_DayZProfilesOptions
Definition DayZGame.c:646

Перекрестные ссылки 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

415 {
416 if (!m_DayZProfilesOptionsBool.Contains(option))
417 {
420
423 }
424 }
DayZProfilesOption DayZProfilesOptionBool
Definition DayZGame.c:393
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
Definition DayZGame.c:524
bool GetProfileValueBool(string name, bool def=false)
Return value from profile variable, if variable with given name is not present, default value is retu...
Definition tools.c:1021

Перекрестные ссылки GetProfileValueBool(), m_DayZProfilesOptionsBool и SetProfileOptionBool().

Используется в RegisterProfileOptionBool().

◆ RegisterProfileOptionBool()

void RegisterProfileOptionBool ( EDayZProfilesOptions option,
string profileOptionName,
bool defaultValue = true )
inlineprivate
427 {
429 }
void RegisterProfileOption(EDayZProfilesOptions option, string profileOptionName, bool def=true)
Definition DayZGame.c:414

Перекрестные ссылки 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

446 {
447 if (!m_DayZProfilesOptionsFloat.Contains(option))
448 {
450 string outValue;
451 GetGame().GetProfileString(profileOptionName, outValue);
452 float value = outValue.ToFloat();
453
456 }
457 }
Param3< string, float, float > DayZProfilesOptionFloat
Definition DayZGame.c:395
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
Definition DayZGame.c:543
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsFloat и SetProfileOptionFloat().

◆ RegisterProfileOptionInt()

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

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

432 {
433 if (!m_DayZProfilesOptionsInt.Contains(option))
434 {
436 string outValue;
437 GetGame().GetProfileString(profileOptionName, outValue);
438 int value = outValue.ToInt();
439
442 }
443 }
Param3< string, int, int > DayZProfilesOptionInt
Definition DayZGame.c:394
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
Definition DayZGame.c:529

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsInt и SetProfileOptionInt().

◆ ResetOptions()

void ResetOptions ( )
inlineprivate
474 {
476 }
void ResetOptionsBool()
Definition DayZGame.c:459

Перекрестные ссылки ResetOptionsBool().

◆ ResetOptionsBool()

void ResetOptionsBool ( )
inlineprivate
460 {
462 {
464 }
465
467 {
468 bool profileVal = GetProfileValueBool(r_opt.param1, r_opt.param3);
470 }
471 }
EDayZProfilesOptions
Definition EDayZProfilesOptions.c:2

Перекрестные ссылки GetProfileValueBool(), m_DayZProfilesOptionsBool и SetProfileOptionBool().

Используется в ResetOptions().

◆ ResetOptionsFloat()

void ResetOptionsFloat ( )
inlineprivate
495 {
497 {
499 }
500
502 {
503 string outValue;
504 GetGame().GetProfileString(r_opt.param1, outValue);
505 float value = outValue.ToFloat();
507 }
508 }

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsFloat и SetProfileOptionFloat().

◆ ResetOptionsInt()

void ResetOptionsInt ( )
inlineprivate
479 {
481 {
483 }
484
486 {
487 string outValue;
488 GetGame().GetProfileString(r_opt.param1, outValue);
489 int value = outValue.ToInt();
491 }
492 }

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsInt и SetProfileOptionInt().

◆ SetProfileOption()

void SetProfileOption ( EDayZProfilesOptions option,
bool value )
inlineprivate
511 {
513 {
515
516 po.param2 = value;
517 GetGame().SetProfileString(po.param1, value.ToString());
518 GetGame().SaveProfile();
519
520 m_OnBoolOptionChanged.Invoke(po.param1, value);
521 }
522 }
static ref ScriptInvoker m_OnBoolOptionChanged
Definition DayZGame.c:404

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsBool и m_OnBoolOptionChanged.

Используется в SetProfileOptionBool().

◆ SetProfileOptionBool()

void SetProfileOptionBool ( EDayZProfilesOptions option,
bool value )
inlineprivate
525 {
527 }
void SetProfileOption(EDayZProfilesOptions option, bool value)
Definition DayZGame.c:510

Перекрестные ссылки SetProfileOption().

Используется в RegisterProfileOption() и ResetOptionsBool().

◆ SetProfileOptionFloat()

void SetProfileOptionFloat ( EDayZProfilesOptions option,
float value )
inlineprivate
544 {
546 {
548
549 po.param2 = value;
550 GetGame().SetProfileString(po.param1, value.ToString());
551 GetGame().SaveProfile();
552
553 m_OnFloatOptionChanged.Invoke(po.param1, value);
554 }
555 }
static ref ScriptInvoker m_OnFloatOptionChanged
Definition DayZGame.c:405

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsFloat и m_OnFloatOptionChanged.

Используется в RegisterProfileOptionFloat() и ResetOptionsFloat().

◆ SetProfileOptionInt()

void SetProfileOptionInt ( EDayZProfilesOptions option,
int value )
inlineprivate
530 {
532 {
534
535 po.param2 = value;
536 GetGame().SetProfileString(po.param1, value.ToString());
537 GetGame().SaveProfile();
538
540 }
541 }
static ref ScriptInvoker m_OnIntOptionChanged
Definition DayZGame.c:403

Перекрестные ссылки GetGame(), m_DayZProfilesOptionsInt и m_OnIntOptionChanged.

Используется в RegisterProfileOptionInt() и ResetOptionsInt().

Поля

◆ m_DayZProfilesOptions

ref map<EDayZProfilesOptions, ref DayZProfilesOption> m_DayZProfilesOptions
private

DEPRECATED

Используется в GetProfileOptionMap().

◆ m_DayZProfilesOptionsBool

◆ m_DayZProfilesOptionsFloat

◆ m_DayZProfilesOptionsInt

◆ m_Game

DayZGame m_Game
private

◆ m_OnBoolOptionChanged

ref ScriptInvoker m_OnBoolOptionChanged = new ScriptInvoker()
staticprivate

Используется в SetProfileOption().

◆ m_OnFloatOptionChanged

ref ScriptInvoker m_OnFloatOptionChanged = new ScriptInvoker()
staticprivate

Используется в SetProfileOptionFloat().

◆ m_OnIntOptionChanged

ref ScriptInvoker m_OnIntOptionChanged = new ScriptInvoker()
staticprivate

Объявления и описания членов класса находятся в файле: