Table of Contents
Extensions for LockLists
public static class LockedListExt
Inheritance System.Object LockedListExt
Return this with an additional Item added to it
public static LockList<TSource> AddTo<TSource,TCast>(this LockList<TSource> lockList, TCast objectToAdd)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item to add
lockList
Il2CppAssets.Scripts.Utils.LockList
objectToAdd
TCast
Item to add
Il2CppAssets.Scripts.Utils.LockList
Return a duplicate of this
public static LockList<T> Duplicate<T>(this LockList<T> list);
T
list
Il2CppAssets.Scripts.Utils.LockList
Il2CppAssets.Scripts.Utils.LockList
Return a duplicate of this as type TCast
public static LockList<TCast> DuplicateAs<TSource,TCast>(this LockList<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
list
Il2CppAssets.Scripts.Utils.LockList
Il2CppAssets.Scripts.Utils.LockList
Return all Items of type TCast
public static System.Collections.Generic.List<TCast> GetItemsOfType<TSource,TCast>(this LockList<TSource> lockList)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items you want
lockList
Il2CppAssets.Scripts.Utils.LockList
System.Collections.Generic.List<TCast>
Check if this has any items of type TCast
public static bool HasItemsOfType<TSource,TCast>(this LockList<TSource> lockList)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type you're checking for
lockList
Il2CppAssets.Scripts.Utils.LockList
Return this with the first Item of type TCast removed
public static LockList<TSource> RemoveItem<TSource,TCast>(this LockList<TSource> lockList, TCast itemToRemove)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
lockList
Il2CppAssets.Scripts.Utils.LockList
itemToRemove
TCast
The specific Item to remove
Il2CppAssets.Scripts.Utils.LockList
Return this with the first Item of type TCast removed
public static LockList<TSource> RemoveItemOfType<TSource,TCast>(this LockList<TSource> lockList)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
lockList
Il2CppAssets.Scripts.Utils.LockList
Il2CppAssets.Scripts.Utils.LockList
Return this with all Items of type TCast removed
public static LockList<TSource> RemoveItemsOfType<TSource,TCast>(this LockList<TSource> lockList)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items that you want to remove
lockList
Il2CppAssets.Scripts.Utils.LockList
Il2CppAssets.Scripts.Utils.LockList
Return as System.Array
public static T[] ToArray<T>(this LockList<T> lockList);
T
lockList
Il2CppAssets.Scripts.Utils.LockList
Return as Il2CppSystem.List
public static List<T> ToIl2CppList<T>(this LockList<T> lockList);
T
lockList
Il2CppAssets.Scripts.Utils.LockList
Il2CppSystem.Collections.Generic.List
Return as Il2CppReferenceArray
public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this LockList<T> lockList)
where T : Object;
T
lockList
Il2CppAssets.Scripts.Utils.LockList
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return as System.List
public static System.Collections.Generic.List<T> ToList<T>(this LockList<T> lockList);
T
lockList
Il2CppAssets.Scripts.Utils.LockList