Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Enforce script essentials

Classes

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  Obsolete
 
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
 
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)
 
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.
 
proto int ParseString (string input, out string tokens[])
 Parses string into array of tokens returns number of tokens.
 
proto native int KillThread (Class owner, string name)
 Kills thread.
 
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.
 
string String (string s)
 Helper for passing string expression to functions with void parameter. Example: Print(String("Hello " + var));.
 
Obsolete Managed PrintString (string s)
 Helper for printing out string expression. Example: PrintString("Hello " + var);.
 
void Obsolete (string msg="")
 

Variables

string m_Msg
 
class array< Class T > PrintString
 

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 807 of file enscript.c.

◆ TBoolArray

typedef array<bool> TBoolArray

Definition at line 712 of file enscript.c.

◆ TClassArray

Definition at line 713 of file enscript.c.

◆ TClassClassMap

Definition at line 994 of file enscript.c.

◆ TClassFloatMap

Definition at line 991 of file enscript.c.

◆ TClassIntMap

Definition at line 992 of file enscript.c.

◆ TClassManagedMap

Definition at line 995 of file enscript.c.

◆ TClassManagedRefMap

Definition at line 996 of file enscript.c.

◆ TClassSet

typedef set<Class> TClassSet

Definition at line 802 of file enscript.c.

◆ TClassStringMap

Definition at line 993 of file enscript.c.

◆ TClassTypenameMap

Definition at line 997 of file enscript.c.

◆ TClassVectorMap

Definition at line 998 of file enscript.c.

◆ TFloatArray

Definition at line 710 of file enscript.c.

◆ TFloatSet

typedef set<float> TFloatSet

Definition at line 800 of file enscript.c.

◆ TIntArray

typedef array<int> TIntArray

Definition at line 711 of file enscript.c.

◆ TIntClassMap

Definition at line 976 of file enscript.c.

◆ TIntFloatMap

Definition at line 973 of file enscript.c.

◆ TIntIntMap

typedef map<int, int> TIntIntMap

Definition at line 974 of file enscript.c.

◆ TIntManagedMap

Definition at line 977 of file enscript.c.

◆ TIntManagedRefMap

Definition at line 978 of file enscript.c.

◆ TIntSet

typedef set<int> TIntSet

Definition at line 801 of file enscript.c.

◆ TIntStringMap

Definition at line 975 of file enscript.c.

◆ TIntTypenameMap

Definition at line 979 of file enscript.c.

◆ TIntVectorMap

Definition at line 980 of file enscript.c.

◆ TManagedArray

Definition at line 714 of file enscript.c.

◆ TManagedClassMap

Definition at line 1012 of file enscript.c.

◆ TManagedFloatMap

Definition at line 1009 of file enscript.c.

◆ TManagedIntMap

Definition at line 1010 of file enscript.c.

◆ TManagedManagedMap

Definition at line 1013 of file enscript.c.

◆ TManagedManagedRefMap

Definition at line 1014 of file enscript.c.

◆ TManagedRefArray

Definition at line 715 of file enscript.c.

◆ TManagedRefClassMap

Definition at line 1021 of file enscript.c.

◆ TManagedRefFloatMap

Definition at line 1018 of file enscript.c.

◆ TManagedRefIntMap

Definition at line 1019 of file enscript.c.

◆ TManagedRefManagedMap

Definition at line 1022 of file enscript.c.

◆ TManagedRefManagedRefMap

Definition at line 1023 of file enscript.c.

◆ TManagedRefSet

typedef set<ref Managed> TManagedRefSet

Definition at line 804 of file enscript.c.

◆ TManagedRefStringMap

Definition at line 1020 of file enscript.c.

◆ TManagedRefTypenameMap

Definition at line 1024 of file enscript.c.

◆ TManagedRefVectorMap

Definition at line 1025 of file enscript.c.

◆ TManagedSet

typedef set<Managed> TManagedSet

Definition at line 803 of file enscript.c.

◆ TManagedStringMap

Definition at line 1011 of file enscript.c.

◆ TManagedTypenameMap

Definition at line 1015 of file enscript.c.

◆ TManagedVectorMap

Definition at line 1016 of file enscript.c.

◆ TStringArray

Definition at line 709 of file enscript.c.

◆ TStringClassMap

Definition at line 985 of file enscript.c.

◆ TStringFloatMap

Definition at line 982 of file enscript.c.

◆ TStringIntMap

Definition at line 983 of file enscript.c.

◆ TStringManagedMap

Definition at line 986 of file enscript.c.

◆ TStringManagedRefMap

Definition at line 987 of file enscript.c.

◆ TStringSet

typedef set<string> TStringSet

Definition at line 799 of file enscript.c.

◆ TStringStringMap

Definition at line 984 of file enscript.c.

◆ TStringTypenameMap

Definition at line 988 of file enscript.c.

◆ TStringVectorMap

Definition at line 989 of file enscript.c.

◆ TTypenameArray

Definition at line 717 of file enscript.c.

◆ TTypeNameClassMap

Definition at line 1003 of file enscript.c.

◆ TTypeNameFloatMap

Definition at line 1000 of file enscript.c.

◆ TTypeNameIntMap

Definition at line 1001 of file enscript.c.

◆ TTypeNameManagedMap

Definition at line 1004 of file enscript.c.

◆ TTypeNameManagedRefMap

Definition at line 1005 of file enscript.c.

◆ TTypenameSet

typedef set<typename> TTypenameSet

Definition at line 805 of file enscript.c.

◆ TTypeNameStringMap

Definition at line 1002 of file enscript.c.

◆ TTypeNameTypenameMap

Definition at line 1006 of file enscript.c.

◆ TTypeNameVectorMap

Definition at line 1007 of file enscript.c.

◆ TVectorArray

Definition at line 716 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 ???
???

◆ Obsolete()

void PrintString::Obsolete ( string msg = "")

Definition at line 371 of file enscript.c.

◆ 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'
proto void Print(void var)
Prints content of variable to console/log.
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. 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'
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....
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition enscript.c:339

◆ PrintString()

Obsolete Managed PrintString ( string s)

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

Definition at line 339 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'
proto void Sort(void param_array[], int num)
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)
Icon x

◆ 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 ???
???

Variable Documentation

◆ m_Msg

string m_Msg

Definition at line 370 of file enscript.c.

◆ PrintString

class array< Class T > PrintString