67 proto native owned external
string ClassName();
82 proto native external
typename Type();
109 private proto
static void SafeCastType(out
typename type, out
Class to,
Class from);
115 proto external ref Managed
Clone();
139class handle64: pointer
154class array<
Class T>: Managed
160 proto native
int Count();
171 proto native
void Clear();
185 proto
void Set(
int n,
T value);
252 for (
int i = 0; i < from.Count(); i++ )
288 proto native
void Swap(notnull array<T> other);
291 proto native
void Sort(
bool reverse =
false);
300 proto
int Copy(notnull array<T> from);
331 for (
int i = 0; i <
Count(); i++ )
378 T item1 =
Get(item1_index);
379 Set(item1_index,
Get(item2_index));
380 Set(item2_index, item1);
398 proto native
int Count();
407 proto native
void Clear();
421 proto native
void Reserve(
int newSize);
427 proto
int Find(
T value);
455 proto
int Copy(set<T> from);
456 proto native
void Swap(set<T> other);
457 proto
int Init(
T init[]);
490 proto native
int Count();
498 proto native
void Clear();
505 proto TValue Get(TKey key);
512 proto
bool Find(TKey key, out TValue val);
519 proto TValue GetElement(
int index);
526 proto TKey GetKey(
int i);
531 proto
void Set(TKey key, TValue value);
536 proto
bool Remove(TKey key);
543 proto
bool Take(TKey key, out TValue value);
550 proto
bool RemoveElement(
int i);
552 proto
bool Contains(TKey key);
558 proto
bool Insert(TKey key, TValue value);
561 [
Obsolete(
"Use SCR_MapHelper.ReplaceKey")]
562 bool ReplaceKey(TKey old_key, TKey new_key)
564 if (Contains(old_key))
566 Set(new_key, Get(old_key));
573 [
Obsolete(
"Use SCR_MapHelper.GetKeyByValue")]
574 TKey GetKeyByValue(TValue value)
577 for (
int i = 0; i <
Count(); i++)
579 if (GetElement(i) == value)
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
class SCR_MapHelperT< Class T, Class U > T
SCR_WorkshopAddonPresetAddonMeta Copy()
proto native external Type()
proto native owned external string ClassName()
proto native external int GetRefCount()
Get actual count of references holding this instance. If instance is not managed, zero is returned.
proto native external int GetSizeOf()
Get actual size of instance including size of all referenced objects.
proto native external bool IsInherited(typename type)
Super root of all classes in Enforce script.
Script representation for C++ RTTI types.
Plain C++ pointer, no weak pointers, no memory management. Safe to store outside local scope.
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
proto native void Reserve(int newSize)
map< Managed, int > TManagedIntMap
map< int, pointer > TIntPointerMap
map< pointer, ref Managed > TPointerManagedRefMap
map< Managed, Class > TManagedClassMap
void SwapItems(int item1_index, int item2_index)
map< pointer, pointer > TPointerPointerMap
map< Class, pointer > TClassPointerMap
array< float > TFloatArray
proto void Set(int n, T value)
Sets n-th element to given value.
map< Class, vector > TClassVectorMap
proto int Insert(T value)
map< string, pointer > TStringPointerMap
array< pointer > TPointerArray
set< Class T > TStringSet
map< ref Managed, Managed > TManagedRefManagedMap
map< Managed, pointer > TManagedPointerMap
proto bool RemoveItem(T value)
array< string > TStringArray
proto bool RemoveItemOrdered(T value)
class Class Clone()
Return shallow copy of object, or null if it is not allowed (not public constructor).
proto native void RemoveOrdered(int index)
map< int, Class > TIntClassMap
map< Class, float > TClassFloatMap
map< string, vector > TStringVectorMap
map< int, string > TIntStringMap
proto native void Swap(notnull array< T > other)
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.
array< Managed > TManagedArray
map< ref Managed, vector > TManagedRefVectorMap
proto native void Compact()
map< ref Managed, float > TManagedRefFloatMap
proto native bool IsIndexValid(int index)
Returns whether provided element index of array is valid.
array< vector > TVectorArray
array< ref Managed > TManagedRefArray
proto bool Contains(T value)
map< ref Managed, ref Managed > TManagedRefManagedRefMap
map< ref Managed, pointer > TManagedRefPointerMap
proto native vector Vector(float x, float y, float z)
map< pointer, string > TPointerStringMap
map< Class, Class > TClassClassMap
proto native void Sort(bool reverse=false)
Sorts elements of array, depends on underlying type.
array< Class > TClassArray
map< Class, int > TClassIntMap
proto int InsertAt(T value, int index)
map< pointer, float > TPointerFloatMap
map< pointer, vector > TPointerVectorMap
map< string, int > TStringIntMap
set< ref Managed > TManagedRefSet
map< pointer, int > TPointerIntMap
proto native void Clear()
Remove all calls from list.
proto native bool IsEmpty()
proto native void Resize(int newSize)
map< ref Managed, string > TManagedRefStringMap
map< Class, ref Managed > TClassManagedRefMap
map< Managed, Managed > TManagedManagedMap
map< pointer, Managed > TPointerManagedMap
map< Managed, ref Managed > TManagedManagedRefMap
map< string, ref Managed > TStringManagedRefMap
map< string, string > TStringStringMap
map< pointer, Class > TPointerClassMap
map< Class, string > TClassStringMap
map< int, int > TIntIntMap
global_pointer pointer SetInstance(Managed inst)
Plain 64bit data, no weak pointers, no memory management.
map< string, float > TStringFloatMap
map< ref Managed, int > TManagedRefIntMap
set< pointer > TPointerSet
proto native void Remove(int index)
void InsertAll(notnull array< T > from)
map< string, Class > TStringClassMap
map< int, Managed > TIntManagedMap
map< Managed, float > TManagedFloatMap
array< ResourceName > TResourceNameArray
map< int, vector > TIntVectorMap
set< Managed > TManagedSet
map< int, ref Managed > TIntManagedRefMap
map< ref Managed, Class > TManagedRefClassMap
map< Managed, string > TManagedStringMap
map< Managed, vector > TManagedVectorMap
map< string, Managed > TStringManagedMap
map< Class, Managed > TClassManagedMap