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

Private Member Functions

void EnumTools ()
void ~EnumTools ()

Static Private Member Functions

static string EnumToString (typename e, int enumValue)
 Return string name of enum value.
static int GetEnumSize (typename e)
 Return amount of values in enum.
static int GetEnumValue (typename e, int idx)
 Return the nth value in the enum.
static int GetLastEnumValue (typename e)
 Return amount of values in enum.
static int StringToEnum (typename e, string enumName)
 Return enum value from string name.

Detailed Description

Definition at line 602 of file enconvert.c.

Constructor & Destructor Documentation

◆ EnumTools()

void EnumTools ( )
private

◆ ~EnumTools()

void ~EnumTools ( )
private

Member Function Documentation

◆ EnumToString()

string EnumToString ( typename e ,
int enumValue )
inlinestaticprivate

Return string name of enum value.

DialogPriority prio = DialogPriority.WARNING;
Print( EnumTools.EnumToString(DialogPriority, prio) );
void EnumTools()
proto void Print(void var)
Prints content of variable to console/log.

Definition at line 614 of file enconvert.c.

Referenced by AnalyticsRegisterStat(), AnalyticsSetState(), BodyPartHeatProperties(), BodyPartHeatProperties(), Entity::CacheSkinningBloodInfectionChance(), Debug(), Hud::Debug(), and OnCategorySet().

◆ GetEnumSize()

int GetEnumSize ( typename e )
inlinestaticprivate

◆ GetEnumValue()

int GetEnumValue ( typename e ,
int idx )
inlinestaticprivate

Return the nth value in the enum.

Print( EnumTools.GetEnumValue(DialogPriority, 1) );

Definition at line 647 of file enconvert.c.

Referenced by ContentDLC::OwnsAllDLC(), and EnProfilerTests::TestSetFlags().

◆ GetLastEnumValue()

int GetLastEnumValue ( typename e )
inlinestaticprivate

Return amount of values in enum.

Print( EnumTools.GetLastEnumValue(DialogPriority) );

Definition at line 660 of file enconvert.c.

Referenced by FireworksLauncher::FireworksLauncher(), and Land_Underground_EntranceBase::Land_Underground_EntranceBase().

◆ StringToEnum()

int StringToEnum ( typename e ,
string enumName )
inlinestaticprivate

Return enum value from string name.

Print( EnumTools.StringToEnum(DialogPriority, "WARNING") );

Definition at line 625 of file enconvert.c.

Referenced by EnProfilerTests::TestModule().


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