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

Go to the source code of this file.

Classes

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 native external bool IsInherited (typename type)
proto native external int GetSizeOf ()
 Get actual size of instance including size of all referenced objects.
proto native owned external string ClassName ()
proto native external Type ()
proto external string ToString ()
 Plain C++ pointer, no weak pointers, no memory management.
proto native external int GetRefCount ()
 Get actual count of references holding this instance. If instance is not managed, zero is returned.
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

Function Documentation

◆ ClassName()

proto native owned external string Clone::ClassName ( )

Returns name of class-type.

Returns
class-type

Example:

Man player = g_Game.GetPlayer();
string className = player.ClassName();
Print(className);
>> className = 'Man'
Game g_Game
Game singleton instance.
Definition gameLib.c:13
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.

◆ GetRefCount()

proto native external int Clone::GetRefCount ( )

Get actual count of references holding this instance. If instance is not managed, zero is returned.

◆ GetSizeOf()

proto native external int Clone::GetSizeOf ( )

Get actual size of instance including size of all referenced objects.

◆ IsInherited()

proto native external bool Clone::IsInherited ( typename type )

Returns true when instance is of the type, or inherited one.

Parameters
typeClass type
Returns
true when clType is the same as type, or inherited one.

Example:

if (inst && inst.IsInherited(Widget))
{
Print("inst is inherited from Widget class!");
}

◆ Type()

proto native external Clone::Type ( )

Returns typename of object's class.

Returns
class-type

Example:

Man player = g_Game.GetPlayer();
typename type = player.Type();
Print(type.ToString());
>> 'Man'
EDamageType type

Definition at line 17 of file ScriptCamera.c.