Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
Enforce script essentials

Data Structures

class  Class
 Super root of all classes in Enforce script. More...
 
class  Managed
 TODO doc. More...
 
class  NonSerialized
 TODO doc. More...
 
class  ScriptModule
 Module containing compiled scripts. More...
 
class  EnScript
 
class  array< Class T >
 
class  set< Class T >
 
class  map< Class TKey, Class TValue >
 Associative array template
usage: More...
 

Typedefs

typedef int[] TypeID
 script representation for C++ RTTI types More...
 
typedef array< stringTStringArray
 
typedef array< floatTFloatArray
 
typedef array< intTIntArray
 
typedef array< boolTBoolArray
 
typedef array< ClassTClassArray
 
typedef array< ManagedTManagedArray
 
typedef array< ref ManagedTManagedRefArray
 
typedef array< vectorTVectorArray
 
typedef array< typenameTTypenameArray
 
typedef set< stringTStringSet
 
typedef set< floatTFloatSet
 
typedef set< intTIntSet
 
typedef set< ClassTClassSet
 
typedef set< ManagedTManagedSet
 
typedef set< ref ManagedTManagedRefSet
 
typedef set< typenameTTypenameSet
 
typedef int MapIterator
 
typedef map< int, floatTIntFloatMap
 
typedef map< int, intTIntIntMap
 
typedef map< int, stringTIntStringMap
 
typedef map< int, ClassTIntClassMap
 
typedef map< int, ManagedTIntManagedMap
 
typedef map< int, ref ManagedTIntManagedRefMap
 
typedef map< int, typenameTIntTypenameMap
 
typedef map< int, vectorTIntVectorMap
 
typedef map< string, floatTStringFloatMap
 
typedef map< string, intTStringIntMap
 
typedef map< string, stringTStringStringMap
 
typedef map< string, ClassTStringClassMap
 
typedef map< string, ManagedTStringManagedMap
 
typedef map< string, ref ManagedTStringManagedRefMap
 
typedef map< string, typenameTStringTypenameMap
 
typedef map< string, vectorTStringVectorMap
 
typedef map< Class, floatTClassFloatMap
 
typedef map< Class, intTClassIntMap
 
typedef map< Class, stringTClassStringMap
 
typedef map< Class, ClassTClassClassMap
 
typedef map< Class, ManagedTClassManagedMap
 
typedef map< Class, ref ManagedTClassManagedRefMap
 
typedef map< Class, typenameTClassTypenameMap
 
typedef map< Class, vectorTClassVectorMap
 
typedef map< typename, floatTTypeNameFloatMap
 
typedef map< typename, intTTypeNameIntMap
 
typedef map< typename, stringTTypeNameStringMap
 
typedef map< typename, ClassTTypeNameClassMap
 
typedef map< typename, ManagedTTypeNameManagedMap
 
typedef map< typename, ref ManagedTTypeNameManagedRefMap
 
typedef map< typename, typenameTTypeNameTypenameMap
 
typedef map< typename, vectorTTypeNameVectorMap
 
typedef map< Managed, floatTManagedFloatMap
 
typedef map< Managed, intTManagedIntMap
 
typedef map< Managed, stringTManagedStringMap
 
typedef map< Managed, ClassTManagedClassMap
 
typedef map< Managed, ManagedTManagedManagedMap
 
typedef map< Managed, ref ManagedTManagedManagedRefMap
 
typedef map< Managed, typenameTManagedTypenameMap
 
typedef map< Managed, vectorTManagedVectorMap
 
typedef map< ref Managed, floatTManagedRefFloatMap
 
typedef map< ref Managed, intTManagedRefIntMap
 
typedef map< ref Managed, stringTManagedRefStringMap
 
typedef map< ref Managed, ClassTManagedRefClassMap
 
typedef map< ref Managed, ManagedTManagedRefManagedMap
 
typedef map< ref Managed, ref ManagedTManagedRefManagedRefMap
 
typedef map< ref Managed, typenameTManagedRefTypenameMap
 
typedef map< ref Managed, vectorTManagedRefVectorMap
 

Functions

proto void Sort (void param_array[], int num)
 Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically) More...
 
proto void reversearray (void param_array)
 
proto void copyarray (void destArray, void srcArray)
 
proto int ParseStringEx (inout string input, string token)
 Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length. More...
 
proto int ParseString (string input, out string tokens[])
 Parses string into array of tokens returns number of tokens. More...
 
proto native int KillThread (Class owner, string name)
 Kills thread. More...
 
proto volatile void Idle ()
 
proto owned string ThreadFunction (Class owner, string name, int backtrace, out int linenumber)
 Debug function. Returns current function on stack of the thread. More...
 
string String (string s)
 Helper for passing string expression to functions with void parameter. Example: Print(String("Hello " + var));. More...
 
void PrintString (string s)
 Helper for printing out string expression. Example: PrintString("Hello " + var);. More...
 

Detailed Description

Note
float ftime; The deltaTime since last frame
float FLT_MAX; The maximum value for float
float FLT_MIN; The minimum value for float

Typedef Documentation

◆ MapIterator

typedef int MapIterator

Definition at line 783 of file enscript.c.

◆ TBoolArray

typedef array<bool> TBoolArray

Definition at line 688 of file enscript.c.

◆ TClassArray

Definition at line 689 of file enscript.c.

◆ TClassClassMap

Definition at line 970 of file enscript.c.

◆ TClassFloatMap

Definition at line 967 of file enscript.c.

◆ TClassIntMap

Definition at line 968 of file enscript.c.

◆ TClassManagedMap

Definition at line 971 of file enscript.c.

◆ TClassManagedRefMap

Definition at line 972 of file enscript.c.

◆ TClassSet

typedef set<Class> TClassSet

Definition at line 778 of file enscript.c.

◆ TClassStringMap

Definition at line 969 of file enscript.c.

◆ TClassTypenameMap

Definition at line 973 of file enscript.c.

◆ TClassVectorMap

Definition at line 974 of file enscript.c.

◆ TFloatArray

Definition at line 686 of file enscript.c.

◆ TFloatSet

typedef set<float> TFloatSet

Definition at line 776 of file enscript.c.

◆ TIntArray

typedef array<int> TIntArray

Definition at line 687 of file enscript.c.

◆ TIntClassMap

Definition at line 952 of file enscript.c.

◆ TIntFloatMap

Definition at line 949 of file enscript.c.

◆ TIntIntMap

typedef map<int, int> TIntIntMap

Definition at line 950 of file enscript.c.

◆ TIntManagedMap

Definition at line 953 of file enscript.c.

◆ TIntManagedRefMap

Definition at line 954 of file enscript.c.

◆ TIntSet

typedef set<int> TIntSet

Definition at line 777 of file enscript.c.

◆ TIntStringMap

Definition at line 951 of file enscript.c.

◆ TIntTypenameMap

Definition at line 955 of file enscript.c.

◆ TIntVectorMap

Definition at line 956 of file enscript.c.

◆ TManagedArray

Definition at line 690 of file enscript.c.

◆ TManagedClassMap

Definition at line 988 of file enscript.c.

◆ TManagedFloatMap

Definition at line 985 of file enscript.c.

◆ TManagedIntMap

Definition at line 986 of file enscript.c.

◆ TManagedManagedMap

Definition at line 989 of file enscript.c.

◆ TManagedManagedRefMap

Definition at line 990 of file enscript.c.

◆ TManagedRefArray

Definition at line 691 of file enscript.c.

◆ TManagedRefClassMap

Definition at line 997 of file enscript.c.

◆ TManagedRefFloatMap

Definition at line 994 of file enscript.c.

◆ TManagedRefIntMap

Definition at line 995 of file enscript.c.

◆ TManagedRefManagedMap

Definition at line 998 of file enscript.c.

◆ TManagedRefManagedRefMap

Definition at line 999 of file enscript.c.

◆ TManagedRefSet

typedef set<ref Managed> TManagedRefSet

Definition at line 780 of file enscript.c.

◆ TManagedRefStringMap

Definition at line 996 of file enscript.c.

◆ TManagedRefTypenameMap

Definition at line 1000 of file enscript.c.

◆ TManagedRefVectorMap

Definition at line 1001 of file enscript.c.

◆ TManagedSet

typedef set<Managed> TManagedSet

Definition at line 779 of file enscript.c.

◆ TManagedStringMap

Definition at line 987 of file enscript.c.

◆ TManagedTypenameMap

Definition at line 991 of file enscript.c.

◆ TManagedVectorMap

Definition at line 992 of file enscript.c.

◆ TStringArray

Definition at line 685 of file enscript.c.

◆ TStringClassMap

Definition at line 961 of file enscript.c.

◆ TStringFloatMap

Definition at line 958 of file enscript.c.

◆ TStringIntMap

Definition at line 959 of file enscript.c.

◆ TStringManagedMap

Definition at line 962 of file enscript.c.

◆ TStringManagedRefMap

Definition at line 963 of file enscript.c.

◆ TStringSet

typedef set<string> TStringSet

Definition at line 775 of file enscript.c.

◆ TStringStringMap

Definition at line 960 of file enscript.c.

◆ TStringTypenameMap

Definition at line 964 of file enscript.c.

◆ TStringVectorMap

Definition at line 965 of file enscript.c.

◆ TTypenameArray

Definition at line 693 of file enscript.c.

◆ TTypeNameClassMap

Definition at line 979 of file enscript.c.

◆ TTypeNameFloatMap

Definition at line 976 of file enscript.c.

◆ TTypeNameIntMap

Definition at line 977 of file enscript.c.

◆ TTypeNameManagedMap

Definition at line 980 of file enscript.c.

◆ TTypeNameManagedRefMap

Definition at line 981 of file enscript.c.

◆ TTypenameSet

typedef set<typename> TTypenameSet

Definition at line 781 of file enscript.c.

◆ TTypeNameStringMap

Definition at line 978 of file enscript.c.

◆ TTypeNameTypenameMap

Definition at line 982 of file enscript.c.

◆ TTypeNameVectorMap

Definition at line 983 of file enscript.c.

◆ TVectorArray

Definition at line 692 of file enscript.c.

◆ TypeID

typedef int [] TypeID

script representation for C++ RTTI types

Definition at line 127 of file enscript.c.

Function Documentation

◆ copyarray()

proto void copyarray ( void  destArray,
void  srcArray 
)

◆ Idle()

proto volatile void Idle ( )

Yiels execution to other threads and then it continues. Obsolete...

◆ KillThread()

proto native int KillThread ( Class  owner,
string  name 
)

Kills thread.

Parameters
ownerCan be NULL for global threads.
nameName of the first function on stack
Returns
int ???
???

◆ ParseString()

proto int ParseString ( string  input,
out string  tokens[] 
)

Parses string into array of tokens returns number of tokens.

Parameters
inputstring String for parse
[out]tokensarray[] Parsed string in array
Returns
int Number of tokens
string token[2];
int result = ParseString("Hello World", token);
for( int i = 0; i < 2; i++ )
{
Print(token[i]);
}
>> 'Hello'
>> 'World'

◆ ParseStringEx()

proto int ParseStringEx ( inout string  input,
string  token 
)

Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length.

Parameters
[in,out]inputstring String for parse\ Output is without founded token
[out]tokenstring Founded string token
Returns
int Type of token
Token types:
 0 - error, no token
 1 - defined token (special characters etc. . / * )
 2 - quoted string. Quotes are removed -> TODO
 3 - alphabetic string
 4 - number
 5 - end of line -> TODO
string input = "Hello*World";
string token1;
string token2;
int result1 = ParseStringEx(input, token1);
int result2 = ParseStringEx(input, token2);
Print( String( "Token1 = '" + token1 + "' Type = " + result1.ToString() ) );
Print( String( "Token2 = '" + token2 + "' Type = " + result2.ToString() ) );
Print( input );
>> 'Toke1 = 'Hello' Type = 3'
>> 'Toke1 = '*' Type = 1'

◆ PrintString()

void PrintString ( string  s)

Helper for printing out string expression. Example: PrintString("Hello " + var);.

Definition at line 345 of file enscript.c.

◆ reversearray()

proto void reversearray ( void  param_array)

◆ Sort()

proto void Sort ( void  param_array[],
int  num 
)

Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)

Parameters
param_arrayarray Array to sort
numint How many items will be sorted in array
Returns
void
string arrStr[3] = {"Dog", "Car", "Apple"};
Sort(arrStr, 2)
for ( int x = 0; x < 3; x++ )
{
Print( arrStr[x] );
}
>> 'Car'
>> 'Dog'
>> 'Apple'

◆ String()

string String ( string  s)

Helper for passing string expression to functions with void parameter. Example: Print(String("Hello " + var));.

Definition at line 339 of file enscript.c.

◆ ThreadFunction()

proto owned string ThreadFunction ( Class  owner,
string  name,
int  backtrace,
out int  linenumber 
)

Debug function. Returns current function on stack of the thread.

Parameters
ownerCan be NULL for global threads
nameName of the first function on stack
backtrace???
linenumber???
Returns
string ???
???
Sort
proto void Sort(void param_array[], int num)
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)
String
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition: enscript.c:339
Print
proto void Print(void var)
Prints content of variable to console/log.
ParseString
proto int ParseString(string input, out string tokens[])
Parses string into array of tokens returns number of tokens.
ParseStringEx
proto int ParseStringEx(inout string input, string token)
Parses one token from input string. Result is put into token string, and type of token is returned....
x
Icon x