Skip to Main Content

BTD_Mod_Helper​.Extensions​.LockedListExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

LockedListExt Class

Extensions for LockLists

public static class LockedListExt

Inheritance System.Object  LockedListExt

Methods

LockedListExt.AddTo<TSource,TCast>(this LockList, TCast) Method

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;

Type parameters

TSource

TCast

The Type of the Item to add

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

objectToAdd TCast

Item to add

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.Duplicate(this LockList) Method

Return a duplicate of this

public static LockList<T> Duplicate<T>(this LockList<T> list);

Type parameters

T

Parameters

list Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.DuplicateAs<TSource,TCast>(this LockList) Method

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;

Type parameters

TSource

TCast

Parameters

list Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.GetItemsOfType<TSource,TCast>(this LockList) Method

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;

Type parameters

TSource

TCast

The Type of the Items you want

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

System.Collections.Generic.List<TCast>

LockedListExt.HasItemsOfType<TSource,TCast>(this LockList) Method

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;

Type parameters

TSource

TCast

The Type you're checking for

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

System.Boolean

LockedListExt.RemoveItem<TSource,TCast>(this LockList, TCast) Method

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;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

itemToRemove TCast

The specific Item to remove

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.RemoveItemOfType<TSource,TCast>(this LockList) Method

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;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.RemoveItemsOfType<TSource,TCast>(this LockList) Method

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;

Type parameters

TSource

TCast

The Type of the Items that you want to remove

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppAssets.Scripts.Utils.LockList

LockedListExt.ToArray(this LockList) Method

Return as System.Array

public static T[] ToArray<T>(this LockList<T> lockList);

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

T[]

LockedListExt.ToIl2CppList(this LockList) Method

Return as Il2CppSystem.List

public static List<T> ToIl2CppList<T>(this LockList<T> lockList);

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppSystem.Collections.Generic.List

LockedListExt.ToIl2CppReferenceArray(this LockList) Method

Return as Il2CppReferenceArray

public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this LockList<T> lockList)
    where T : Object;

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

LockedListExt.ToList(this LockList) Method

Return as System.List

public static System.Collections.Generic.List<T> ToList<T>(this LockList<T> lockList);

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Utils.LockList

Returns

System.Collections.Generic.List<T>

To learn how to download BTD Mod Helper and install mods, click here