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< string > TStringArray
typedef array< float > TFloatArray
typedef array< int > TIntArray
typedef array< bool > TBoolArray
typedef array< Class > TClassArray
typedef array< Managed > TManagedArray
typedef array< ref Managed > TManagedRefArray
typedef array< vector > TVectorArray
typedef array< pointer > TPointerArray
typedef array< ResourceName > TResourceNameArray
typedef set< float > TFloatSet
typedef set< int > TIntSet
typedef set< Class > TClassSet
typedef set< Managed > TManagedSet
typedef set< ref Managed > TManagedRefSet
typedef set< pointer > TPointerSet
typedef int MapIterator
typedef map TIntFloatMap
typedef map< int, int > TIntIntMap
typedef map< int, string > TIntStringMap
typedef map< int, Class > TIntClassMap
typedef map< int, Managed > TIntManagedMap
typedef map< int, ref Managed > TIntManagedRefMap
typedef map< int, pointer > TIntPointerMap
typedef map< int, vector > TIntVectorMap
typedef map< string, float > TStringFloatMap
typedef map< string, int > TStringIntMap
typedef map< string, string > TStringStringMap
typedef map< string, Class > TStringClassMap
typedef map< string, Managed > TStringManagedMap
typedef map< string, ref Managed > TStringManagedRefMap
typedef map< string, pointer > TStringPointerMap
typedef map< string, vector > TStringVectorMap
typedef map< Class, float > TClassFloatMap
typedef map< Class, int > TClassIntMap
typedef map< Class, string > TClassStringMap
typedef map< Class, Class > TClassClassMap
typedef map< Class, Managed > TClassManagedMap
typedef map< Class, ref Managed > TClassManagedRefMap
typedef map< Class, pointer > TClassPointerMap
typedef map< Class, vector > TClassVectorMap
typedef map< pointer, float > TPointerFloatMap
typedef map< pointer, int > TPointerIntMap
typedef map< pointer, string > TPointerStringMap
typedef map< pointer, Class > TPointerClassMap
typedef map< pointer, Managed > TPointerManagedMap
typedef map< pointer, ref Managed > TPointerManagedRefMap
typedef map< pointer, pointer > TPointerPointerMap
typedef map< pointer, vector > TPointerVectorMap
typedef map< Managed, float > TManagedFloatMap
typedef map< Managed, int > TManagedIntMap
typedef map< Managed, string > TManagedStringMap
typedef map< Managed, Class > TManagedClassMap
typedef map< Managed, Managed > TManagedManagedMap
typedef map< Managed, ref Managed > TManagedManagedRefMap
typedef map< Managed, pointer > TManagedPointerMap
typedef map< Managed, vector > TManagedVectorMap
typedef map< ref Managed, float > TManagedRefFloatMap
typedef map< ref Managed, int > TManagedRefIntMap
typedef map< ref Managed, string > TManagedRefStringMap
typedef map< ref Managed, Class > TManagedRefClassMap
typedef map< ref Managed, Managed > TManagedRefManagedMap
typedef map< ref Managed, ref Managed > TManagedRefManagedRefMap
typedef map< ref Managed, pointer > TManagedRefPointerMap
typedef map< ref Managed, vector > TManagedRefVectorMap

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 T > TStringSet

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.