Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
Types

Classes

class  bool
class  float
class  int
class  ResourceName
class  SharedItemRef
class  StaticArray
class  string
class  typename
class  UUID
class  vector
class  Class
 Super root of all classes in Enforce script. More...
class  ScriptAndConfig
class  global_pointer
 Plain C++ pointer, no weak pointers, no memory management. Safe to store outside local scope. More...
class  TypeID
 Script representation for C++ RTTI types. More...
class  set< Class T >
class  map

Typedefs

typedef array< stringTStringArray
typedef array< floatTFloatArray
typedef array< intTIntArray
typedef array< boolTBoolArray
typedef array< ClassTClassArray
typedef array< Managed > TManagedArray
typedef array< ref Managed > TManagedRefArray
typedef array< vectorTVectorArray
typedef array< pointer > TPointerArray
typedef array< ResourceNameTResourceNameArray
typedef set< floatTFloatSet
typedef set< intTIntSet
typedef set< ClassTClassSet
typedef set< Managed > TManagedSet
typedef set< ref Managed > TManagedRefSet
typedef set< pointer > TPointerSet
typedef int MapIterator
typedef map TIntFloatMap
typedef map< int, intTIntIntMap
typedef map< int, stringTIntStringMap
typedef map< int, ClassTIntClassMap
typedef map< int, Managed > TIntManagedMap
typedef map< int, ref Managed > TIntManagedRefMap
typedef map< int, pointer > TIntPointerMap
typedef map< int, vectorTIntVectorMap
typedef map< string, floatTStringFloatMap
typedef map< string, intTStringIntMap
typedef map< string, stringTStringStringMap
typedef map< string, ClassTStringClassMap
typedef map< string, Managed > TStringManagedMap
typedef map< string, ref Managed > TStringManagedRefMap
typedef map< string, pointer > TStringPointerMap
typedef map< string, vectorTStringVectorMap
typedef map< Class, floatTClassFloatMap
typedef map< Class, intTClassIntMap
typedef map< Class, stringTClassStringMap
typedef map< Class, ClassTClassClassMap
typedef map< Class, Managed > TClassManagedMap
typedef map< Class, ref Managed > TClassManagedRefMap
typedef map< Class, pointer > TClassPointerMap
typedef map< Class, vectorTClassVectorMap
typedef map< pointer, floatTPointerFloatMap
typedef map< pointer, intTPointerIntMap
typedef map< pointer, stringTPointerStringMap
typedef map< pointer, ClassTPointerClassMap
typedef map< pointer, Managed > TPointerManagedMap
typedef map< pointer, ref Managed > TPointerManagedRefMap
typedef map< pointer, pointer > TPointerPointerMap
typedef map< pointer, vectorTPointerVectorMap
typedef map< Managed, floatTManagedFloatMap
typedef map< Managed, intTManagedIntMap
typedef map< Managed, stringTManagedStringMap
typedef map< Managed, ClassTManagedClassMap
typedef map< Managed, Managed > TManagedManagedMap
typedef map< Managed, ref Managed > TManagedManagedRefMap
typedef map< Managed, pointer > TManagedPointerMap
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, Managed > TManagedRefManagedMap
typedef map< ref Managed, ref Managed > TManagedRefManagedRefMap
typedef map< ref Managed, pointer > TManagedRefPointerMap
typedef map< ref Managed, vectorTManagedRefVectorMap

Functions

string String (string s)
proto native vector Vector (float x, float y, float z)
class Class Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor).
proto external string ToString ()
 Plain C++ pointer, no weak pointers, no memory management.
global_pointer pointer SetInstance (Managed inst)
 Plain 64bit data, no weak pointers, no memory management.
TypeID handle64 Count ()
proto native bool IsEmpty ()
proto native void Clear ()
 Remove all calls from list.
proto native void Compact ()
proto void Set (int n, T value)
 Sets n-th element to given value.
proto int Find (T value)
proto bool Contains (T value)
proto T Get (int n)
proto int Insert (T value)
proto int InsertAt (T value, int index)
void InsertAll (notnull array< T > from)
proto native void Remove (int index)
proto native void RemoveOrdered (int index)
proto native void Resize (int newSize)
proto native void Reserve (int newSize)
proto native void Swap (notnull array< T > other)
proto native void Sort (bool reverse=false)
 Sorts elements of array, depends on underlying type.
proto native bool IsIndexValid (int index)
 Returns whether provided element index of array is valid.
proto int Copy (notnull array< T > from)
proto int Init (T init[])
proto bool RemoveItem (T value)
proto bool RemoveItemOrdered (T value)
void Debug ()
int GetRandomIndex ()
T GetRandomElement ()
void SwapItems (int item1_index, int item2_index)

Variables

set< Class TTStringSet

Detailed Description

Enforce script essentials

Typedef Documentation

◆ MapIterator

typedef int MapIterator

Definition at line 469 of file Types.c.

◆ TBoolArray

typedef array<bool> TBoolArray

Definition at line 388 of file Types.c.

◆ TClassArray

typedef array<Class> TClassArray

Definition at line 389 of file Types.c.

◆ TClassClassMap

Definition at line 617 of file Types.c.

◆ TClassFloatMap

Definition at line 614 of file Types.c.

◆ TClassIntMap

Definition at line 615 of file Types.c.

◆ TClassManagedMap

typedef map<Class, Managed> TClassManagedMap

Definition at line 618 of file Types.c.

◆ TClassManagedRefMap

typedef map<Class, ref Managed> TClassManagedRefMap

Definition at line 619 of file Types.c.

◆ TClassPointerMap

typedef map<Class, pointer> TClassPointerMap

Definition at line 620 of file Types.c.

◆ TClassSet

typedef set<Class> TClassSet

Definition at line 464 of file Types.c.

◆ TClassStringMap

Definition at line 616 of file Types.c.

◆ TClassVectorMap

Definition at line 621 of file Types.c.

◆ TFloatArray

typedef array<float> TFloatArray

Definition at line 386 of file Types.c.

◆ TFloatSet

typedef set<float> TFloatSet

Definition at line 462 of file Types.c.

◆ TIntArray

typedef array<int> TIntArray

Definition at line 387 of file Types.c.

◆ TIntClassMap

Definition at line 599 of file Types.c.

◆ TIntFloatMap

typedef map TIntFloatMap

◆ TIntIntMap

typedef map<int, int> TIntIntMap

Definition at line 597 of file Types.c.

◆ TIntManagedMap

typedef map<int, Managed> TIntManagedMap

Definition at line 600 of file Types.c.

◆ TIntManagedRefMap

typedef map<int, ref Managed> TIntManagedRefMap

Definition at line 601 of file Types.c.

◆ TIntPointerMap

typedef map<int, pointer> TIntPointerMap

Definition at line 602 of file Types.c.

◆ TIntSet

typedef set<int> TIntSet

Definition at line 463 of file Types.c.

◆ TIntStringMap

Definition at line 598 of file Types.c.

◆ TIntVectorMap

Definition at line 603 of file Types.c.

◆ TManagedArray

typedef array<Managed> TManagedArray

Definition at line 390 of file Types.c.

◆ TManagedClassMap

typedef map<Managed, Class> TManagedClassMap

Definition at line 635 of file Types.c.

◆ TManagedFloatMap

typedef map<Managed, float> TManagedFloatMap

Definition at line 632 of file Types.c.

◆ TManagedIntMap

typedef map<Managed, int> TManagedIntMap

Definition at line 633 of file Types.c.

◆ TManagedManagedMap

typedef map<Managed, Managed> TManagedManagedMap

Definition at line 636 of file Types.c.

◆ TManagedManagedRefMap

typedef map<Managed, ref Managed> TManagedManagedRefMap

Definition at line 637 of file Types.c.

◆ TManagedPointerMap

typedef map<Managed, pointer> TManagedPointerMap

Definition at line 638 of file Types.c.

◆ TManagedRefArray

typedef array<ref Managed> TManagedRefArray

Definition at line 391 of file Types.c.

◆ TManagedRefClassMap

typedef map<ref Managed, Class> TManagedRefClassMap

Definition at line 644 of file Types.c.

◆ TManagedRefFloatMap

typedef map<ref Managed, float> TManagedRefFloatMap

Definition at line 641 of file Types.c.

◆ TManagedRefIntMap

typedef map<ref Managed, int> TManagedRefIntMap

Definition at line 642 of file Types.c.

◆ TManagedRefManagedMap

typedef map<ref Managed, Managed> TManagedRefManagedMap

Definition at line 645 of file Types.c.

◆ TManagedRefManagedRefMap

typedef map<ref Managed, ref Managed> TManagedRefManagedRefMap

Definition at line 646 of file Types.c.

◆ TManagedRefPointerMap

typedef map<ref Managed, pointer> TManagedRefPointerMap

Definition at line 647 of file Types.c.

◆ TManagedRefSet

typedef set<ref Managed> TManagedRefSet

Definition at line 466 of file Types.c.

◆ TManagedRefStringMap

typedef map<ref Managed, string> TManagedRefStringMap

Definition at line 643 of file Types.c.

◆ TManagedRefVectorMap

typedef map<ref Managed, vector> TManagedRefVectorMap

Definition at line 648 of file Types.c.

◆ TManagedSet

typedef set<Managed> TManagedSet

Definition at line 465 of file Types.c.

◆ TManagedStringMap

typedef map<Managed, string> TManagedStringMap

Definition at line 634 of file Types.c.

◆ TManagedVectorMap

typedef map<Managed, vector> TManagedVectorMap

Definition at line 639 of file Types.c.

◆ TPointerArray

typedef array<pointer> TPointerArray

Definition at line 393 of file Types.c.

◆ TPointerClassMap

typedef map<pointer, Class> TPointerClassMap

Definition at line 626 of file Types.c.

◆ TPointerFloatMap

typedef map<pointer, float> TPointerFloatMap

Definition at line 623 of file Types.c.

◆ TPointerIntMap

typedef map<pointer, int> TPointerIntMap

Definition at line 624 of file Types.c.

◆ TPointerManagedMap

typedef map<pointer, Managed> TPointerManagedMap

Definition at line 627 of file Types.c.

◆ TPointerManagedRefMap

typedef map<pointer, ref Managed> TPointerManagedRefMap

Definition at line 628 of file Types.c.

◆ TPointerPointerMap

typedef map<pointer, pointer> TPointerPointerMap

Definition at line 629 of file Types.c.

◆ TPointerSet

typedef set<pointer> TPointerSet

Definition at line 467 of file Types.c.

◆ TPointerStringMap

typedef map<pointer, string> TPointerStringMap

Definition at line 625 of file Types.c.

◆ TPointerVectorMap

typedef map<pointer, vector> TPointerVectorMap

Definition at line 630 of file Types.c.

◆ TResourceNameArray

Definition at line 394 of file Types.c.

◆ TStringArray

typedef array<string> TStringArray

Definition at line 385 of file Types.c.

◆ TStringClassMap

Definition at line 608 of file Types.c.

◆ TStringFloatMap

Definition at line 605 of file Types.c.

◆ TStringIntMap

Definition at line 606 of file Types.c.

◆ TStringManagedMap

typedef map<string, Managed> TStringManagedMap

Definition at line 609 of file Types.c.

◆ TStringManagedRefMap

typedef map<string, ref Managed> TStringManagedRefMap

Definition at line 610 of file Types.c.

◆ TStringPointerMap

typedef map<string, pointer> TStringPointerMap

Definition at line 611 of file Types.c.

◆ TStringStringMap

Definition at line 607 of file Types.c.

◆ TStringVectorMap

Definition at line 612 of file Types.c.

◆ TVectorArray

typedef array<vector> TVectorArray

Definition at line 392 of file Types.c.

Function Documentation

◆ Clear()

proto native void Clear ( )

Remove all calls from list.

Destroys all elements of the array and sets the Count to 0. The underlying memory of the array is not freed.

Definition at line 119 of file SCR_HintSequenceComponent.c.

◆ Clone()

class Class Clone ( )

Return shallow copy of object, or null if it is not allowed (not public constructor).

◆ Compact()

proto native void Compact ( )

Frees any underlying memory which is not used. For example if the array allocated enough memory for 100 items but only 1 is used (Count() is 1) this frees the memory taken by the remaining 99 items.

Warning
Memory allocation and deallocation are expensive so only use this function if you know you won't be adding new items to the array on frame-by-frame basis or when the memory consumption is of utmost importance.

◆ Contains()

proto bool Contains ( T value)

Returns whether value is in array or not.

Note
This method has complexity O(n).

◆ Copy()

proto int Copy ( notnull array< T > from)

Copies contents of from array to this array.

Returns
Number of elements copied.

◆ Count()

TypeID handle64 Count ( )

O(1) complexity.

Returns
Number of elements of the array

◆ Debug()

void Debug ( )

Print all elements in array.

my_array.Debug();
>> "One"
>> "Two"
>> "Three"

Definition at line 327 of file Types.c.

◆ Find()

proto int Find ( T value)

Tries to find the first occurrence of value in the array.

Returns
Index of the first occurrence of value if found, -1 otherwise.
Note
This method has complexity O(n).

◆ Get()

proto T Get ( int n)
Returns
Element at the index n.

◆ GetRandomElement()

T GetRandomElement ( )

Returns a random element of array.

Returns
Random element of array.

Example:

Print( my_array.GetRandomElement() );
>> "Three"
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.

Definition at line 371 of file Types.c.

◆ GetRandomIndex()

int GetRandomIndex ( )

Returns a random index of array. If Count is 0, returned index is -1.

Returns
Random index of array.

Example:

Print( my_array.GetRandomIndex() );
>> 2

Definition at line 350 of file Types.c.

◆ Init()

proto int Init ( T init[])

◆ Insert()

proto int Insert ( T value)

Inserts element at the end of array.

Parameters
valueElement to be inserted.
Returns
Position at which element is inserted.

◆ InsertAll()

void InsertAll ( notnull array< T > from)

Inserts all elements from array.

Parameters
fromarray from which all elements will be added.

Example:

arr1.Insert( "Dave" );
arr1.Insert( "Mark" );
arr1.Insert( "John" );
arr2.Insert( "Sarah" );
arr2.Insert( "Cate" );
arr1.InsertAll(arr2);
for ( int i = 0; i < arr1.Count(); i++ )
{
Print( arr1.Get(i) );
}
>> "Dave"
>> "Mark"
>> "John"
>> "Sarah"
>> "Cate"
array< string > TStringArray
Definition Types.c:385

Definition at line 250 of file Types.c.

◆ InsertAt()

proto int InsertAt ( T value,
int index )

Inserts element at certain position and moves all elements behind this position by one.

Parameters
valueElement to be inserted.
indexPosition at which element is inserted. Must be less than Count().
Returns
Number of elements after insertion.

◆ IsEmpty()

proto native bool IsEmpty ( )
Returns
true if the array size is 0, false otherwise.

◆ IsIndexValid()

proto native bool IsIndexValid ( int index)

Returns whether provided element index of array is valid.

◆ Remove()

proto native void Remove ( int index)

Removes element from array. The empty position is replaced by last element, so removal is quite fast but does not retain order.

Parameters
indexIndex of element to be removed

◆ RemoveItem()

proto bool RemoveItem ( T value)

Removes element from array. The empty position is replaced by last element, so removal is quite fast but does not retain order.

Returns
true if item was removed

◆ RemoveItemOrdered()

proto bool RemoveItemOrdered ( T value)

Removes element from array, but retain all elements ordered. It's slower than RemoveItem().

Returns
true if item was removed

◆ RemoveOrdered()

proto native void RemoveOrdered ( int index)

Removes element from array, but retains all elements ordered. It's slower than Remove().

Parameters
indexIndex of element to be removed.

◆ Reserve()

proto native void Reserve ( int newSize)

Reserve memory for given number of elements. This method is used for optimization purposes when the approximate size is known beforehand.

◆ Resize()

proto native void Resize ( int newSize)

Resizes the array to given size. If the newSize is lower than current Count overflowing objects are destroyed. If the newSize is higher than current Count missing elements are initialized to zero (null).

◆ Set()

proto void Set ( int n,
T value )

Sets n-th element to given value.

◆ SetInstance()

global_pointer pointer SetInstance ( Managed inst)

Plain 64bit data, no weak pointers, no memory management.

For internal use in VM.

◆ Sort()

proto native void Sort ( bool reverse = false)

Sorts elements of array, depends on underlying type.

◆ String()

string String ( string s)

Helper for passing string expression to functions with void parameter. Example:

Print(String("Hello " + var));
string String(string s)
Definition Types.c:14

Definition at line 14 of file Types.c.

◆ Swap()

proto native void Swap ( notnull array< T > other)

Swaps the contents of this and other arrays. Does not involve copying of the elements.

◆ SwapItems()

void SwapItems ( int item1_index,
int item2_index )

Definition at line 376 of file Types.c.

◆ ToString()

ScriptAndConfig Managed ToString ( )

Plain C++ pointer, no weak pointers, no memory management.

Examples
F:/Games/AReforger/scripts/Game/Editor/Components/Editor/SCR_TestEditorComponent.c.

◆ Vector()

proto native vector Vector ( float x,
float y,
float z )

Vector constructor from components.

Parameters
xx component
yy component
zz component
Returns
resulting vector
Print( Vector(1, 2, 3) );
>> <1,2,3>
proto native vector Vector(float x, float y, float z)

Variable Documentation

◆ TStringSet

set< Class T > TStringSet