Skip to Main Content
Table of Contents

BTD_Mod_Helper​.Extensions​.RootObjectLockList


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

RootObjectLockList Class

Extensions for RootObjectLockLists

public static class RootObjectLockList

Inheritance System.Object  RootObjectLockList

Methods

RootObjectLockList.AddTo<TSource,TCast>(this RootObjectLockList, TCast) Method

Return this with an additional Item added to it

public static RootObjectLockList<TSource> AddTo<TSource,TCast>(this RootObjectLockList<TSource> lockList, TCast objectToAdd)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type of the Item to add

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

objectToAdd TCast

Item to add

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.Duplicate(this RootObjectLockList) Method

Return a duplicate of this

public static RootObjectLockList<T> Duplicate<T>(this RootObjectLockList<T> list)
    where T : RootObject;

Type parameters

T

Parameters

list Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.DuplicateAs<TSource,TCast>(this RootObjectLockList) Method

Return a duplicate of this as type TCast

public static RootObjectLockList<TCast> DuplicateAs<TSource,TCast>(this RootObjectLockList<TSource> list)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

Parameters

list Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.GetItemOfType<TSource,TCast>(this RootObjectLockList) Method

public static TCast GetItemOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

TCast

RootObjectLockList.GetItemsOfType<TSource,TCast>(this RootObjectLockList) Method

Return all Items of type TCast

public static System.Collections.Generic.List<TCast> GetItemsOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type of the Items you want

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

System.Collections.Generic.List<TCast>

RootObjectLockList.HasItemsOfType<TSource,TCast>(this RootObjectLockList, TCast) Method

Check if this has any items of type TCast

public static bool HasItemsOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList, out TCast item)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type you're checking for

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

item TCast

The found item, if any

Returns

System.Boolean

RootObjectLockList.HasItemsOfType<TSource,TCast>(this RootObjectLockList) Method

Check if this has any items of type TCast

public static bool HasItemsOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type you're checking for

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

System.Boolean

RootObjectLockList.RemoveItem<TSource,TCast>(this RootObjectLockList, TCast) Method

Return this with the first Item of type TCast removed

public static RootObjectLockList<TSource> RemoveItem<TSource,TCast>(this RootObjectLockList<TSource> lockList, TCast itemToRemove)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

itemToRemove TCast

The specific Item to remove

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.RemoveItemOfType<TSource,TCast>(this RootObjectLockList) Method

Return this with the first Item of type TCast removed

public static RootObjectLockList<TSource> RemoveItemOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.RemoveItemsOfType<TSource,TCast>(this RootObjectLockList) Method

Return this with all Items of type TCast removed

public static RootObjectLockList<TSource> RemoveItemsOfType<TSource,TCast>(this RootObjectLockList<TSource> lockList)
    where TSource : Il2CppObjectBase
    where TCast : Il2CppObjectBase;

Type parameters

TSource

TCast

The Type of the Items that you want to remove

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

RootObjectLockList.ToArray(this RootObjectLockList) Method

Return as System.Array

public static T[] ToArray<T>(this RootObjectLockList<T> lockList)
    where T : RootObject;

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

T[]

RootObjectLockList.ToIl2CppList(this RootObjectLockList) Method

Return as Il2CppSystem.List

public static List<T> ToIl2CppList<T>(this RootObjectLockList<T> lockList)
    where T : RootObject;

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppSystem.Collections.Generic.List

RootObjectLockList.ToIl2CppReferenceArray(this RootObjectLockList) Method

Return as Il2CppReferenceArray

public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this RootObjectLockList<T> lockList)
    where T : RootObject;

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

RootObjectLockList.ToList(this RootObjectLockList) Method

Return as System.List

public static System.Collections.Generic.List<T> ToList<T>(this RootObjectLockList<T> lockList)
    where T : RootObject;

Type parameters

T

Parameters

lockList Il2CppAssets.Scripts.Simulation.Objects.RootObjectLockList

Returns

System.Collections.Generic.List<T>

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