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

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

proto volatile Class Spawn ()
 Dynamic variant to 'new' keyword. It creates new instance of class.
 
proto owned string GetModule ()
 Get the name of the module the typename belongs to.
 
proto native owned string ToString ()
 Returns type name of variable as string.
 
proto native bool IsInherited (typename baseType)
 Returns true when type is the same as 'baseType', or inherited one.
 
proto native int GetVariableCount ()
 
proto native owned string GetVariableName (int vIdx)
 
proto native GetVariableType (int vIdx)
 
proto bool GetVariableValue (Class var, int vIdx, out void val)
 

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

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.
 

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

Методы

◆ EnumToString()

static string EnumToString ( typename e ,
int enumValue )
inlinestaticprivate

Return string name of enum value.

Definition EntityAI.c:95
static string EnumToString(typename e, int enumValue)
Return string name of enum value.
Definition EnConvert.c:550
proto void Print(void var)
Prints content of variable to console/log.
551 {
552 int cnt = e.GetVariableCount();
553 int val;
554
555 for (int i = 0; i < cnt; i++)
556 {
557 if (e.GetVariableType(i) == int && e.GetVariableValue(null, i, val) && val == enumValue)
558 {
559 return e.GetVariableName(i);
560 }
561 }
562
563 return "unknown";
564 }

◆ GetModule()

proto owned string GetModule ( )
private

Get the name of the module the typename belongs to.

Возвращает
string Name of parent module (1_Core)

◆ GetVariableCount()

proto native int GetVariableCount ( )
private

◆ GetVariableName()

proto native owned string GetVariableName ( int vIdx)
private

◆ GetVariableType()

proto native GetVariableType ( int vIdx)
private

◆ GetVariableValue()

proto bool GetVariableValue ( Class var,
int vIdx,
out void val )
private

◆ IsInherited()

proto native bool IsInherited ( typename baseType )
private

Returns true when type is the same as 'baseType', or inherited one.

Аргументы
baseTypetypename
Возвращает
bool true when type is the same as 'baseType', or inherited one.
???

◆ Spawn()

proto volatile Class Spawn ( )
private

Dynamic variant to 'new' keyword. It creates new instance of class.

Возвращает
volatile instance of class
???

◆ StringToEnum()

static int StringToEnum ( typename e ,
string enumName )
inlinestaticprivate

Return enum value from string name.

Print( typename.StringToEnum(DialogPriority, "WARNING") );
static int StringToEnum(typename e, string enumName)
Return enum value from string name.
Definition EnConvert.c:572
573 {
574 int count = e.GetVariableCount();
575 int value;
576
577 for (int i = 0; i < count; i++)
578 {
579 if (e.GetVariableType(i) == int && e.GetVariableValue(null, i, value) && e.GetVariableName(i) == enumName)
580 {
581 return value;
582 }
583 }
584
585 return -1;
586 }

◆ ToString()

proto native owned string ToString ( )
private

Returns type name of variable as string.


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