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

Private Member Functions

private void EnumTools ()
 
private void ~EnumTools ()
 

Static Private Member Functions

static string EnumToString (typename e, int enumValue)
 Return string name of enum value.
 
static int StringToEnum (typename e, string enumName)
 Return enum value from string name.
 
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.
 

Constructor & Destructor Documentation

◆ EnumTools()

private void EnumTools ( )
private

◆ ~EnumTools()

private void ~EnumTools ( )
private

Member Function Documentation

◆ EnumToString()

static string EnumToString ( typename ,
int  enumValue 
)
inlinestaticprivate

Return string name of enum value.

DialogPriority prio = DialogPriority.WARNING;
Print( EnumTools.EnumToString(DialogPriority, prio) );
Definition EnConvert.c:603
static string EnumToString(typename e, int enumValue)
Return string name of enum value.
Definition EnConvert.c:614
proto void Print(void var)
Prints content of variable to console/log.

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

◆ GetEnumSize()

static int GetEnumSize ( typename )
inlinestaticprivate

Return amount of values in enum.

Print( EnumTools.GetEnumSize(DialogPriority) );
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition EnConvert.c:636

Referenced by AnniversaryMusicSource(), UIScriptedMenu::DrawConnectingLines(), ManBase::Init(), ContentDLC::OwnsAllDLC(), CarHud::RefreshVehicleHud(), RemoteDetonatorTrigger::RemoteDetonatorTrigger(), and EnProfilerTests::TestSetFlags().

◆ GetEnumValue()

static int GetEnumValue ( typename ,
int  idx 
)
inlinestaticprivate

Return the nth value in the enum.

Print( EnumTools.GetEnumValue(DialogPriority, 1) );
static int GetEnumValue(typename e, int idx)
Return the nth value in the enum.
Definition EnConvert.c:647

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

◆ GetLastEnumValue()

static int GetLastEnumValue ( typename )
inlinestaticprivate

Return amount of values in enum.

Print( EnumTools.GetLastEnumValue(DialogPriority) );
static int GetLastEnumValue(typename e)
Return amount of values in enum.
Definition EnConvert.c:660

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

◆ StringToEnum()

static int StringToEnum ( typename ,
string  enumName 
)
inlinestaticprivate

Return enum value from string name.

Print( EnumTools.StringToEnum(DialogPriority, "WARNING") );
static int StringToEnum(typename e, string enumName)
Return enum value from string name.
Definition EnConvert.c:625

Referenced by EnProfilerTests::TestModule().


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