Skip to Main Content
Table of Contents

BTD_Mod_Helper​.Extensions​.Il2CppReferenceArrayExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppReferenceArrayExt Class

Extensions for Il2CppReferenceArrays

public static class Il2CppReferenceArrayExt

Inheritance System.Object  Il2CppReferenceArrayExt

Methods

Il2CppReferenceArrayExt.AddTo(this Il2CppReferenceArray, Il2CppReferenceArray) Method

Return this with additional Items added to it

public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, Il2CppReferenceArray<T> objectsToAdd)
    where T : Object;

Type parameters

T

The Type of the Items to add

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

objectsToAdd Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Items to add

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.AddTo(this Il2CppReferenceArray, List) Method

Return this with additional Items added to it

public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, System.Collections.Generic.List<T> objectsToAdd)
    where T : Object;

Type parameters

T

The Type of the Items to add

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

objectsToAdd System.Collections.Generic.List<T>

Items to add

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.AddTo(this Il2CppReferenceArray, T) Method

Return this with an additional Item added to it

public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, T objectToAdd)
    where T : Object;

Type parameters

T

The Type of the Item to add

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

objectToAdd T

Item to add

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.Clear(this Il2CppReferenceArray) Method

Sets all elements in the Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray<> to the default value of each element type.

public static void Clear<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.Duplicate(this Il2CppReferenceArray) Method

Return a duplicate of this

public static Il2CppReferenceArray<T> Duplicate<T>(this Il2CppReferenceArray<T> list)
    where T : Object;

Type parameters

T

Parameters

list Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.DuplicateAs<TSource,TCast>(this Il2CppReferenceArray) Method

Return a duplicate of this as type TCast

public static Il2CppReferenceArray<TCast> DuplicateAs<TSource,TCast>(this Il2CppReferenceArray<TSource> list)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

Parameters

list Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.Empty(this Il2CppReferenceArray) Method

Returns an empty Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray<>

public static Il2CppReferenceArray<T> Empty<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.GetItemOfType<TSource,TCast>(this Il2CppReferenceArray) Method

Return the first item of type TCast

public static TCast GetItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type of the Item you want

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

TCast

Il2CppReferenceArrayExt.GetItemsOfType<TSource,TCast>(this Il2CppReferenceArray) Method

Return all Items of type TCast

public static System.Collections.Generic.List<TCast> GetItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type of the Items you want

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

System.Collections.Generic.List<TCast>

Il2CppReferenceArrayExt.HasItemsOfType<TSource,TCast>(this Il2CppReferenceArray) Method

Check if this has any items of type TCast

public static bool HasItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type you're checking for

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

System.Boolean

Il2CppReferenceArrayExt.RemoveItem<TSource,TCast>(this Il2CppReferenceArray, TCast) Method

Return this with the specified item removed

public static Il2CppReferenceArray<TSource> RemoveItem<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, TCast itemToRemove)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

itemToRemove TCast

The specific Item to remove

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray, Model) Method

Return this with the first Item of type TCast removed

public static Il2CppReferenceArray<TSource> RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, Model removeChildFrom)
    where TSource : Object
    where TCast : Model;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

removeChildFrom Il2CppAssets.Scripts.Models.Model

Model to remove the child dependents from

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray) Method

Return this with the first Item of type TCast removed

public static Il2CppReferenceArray<TSource> RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type of the Item you want to remove

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray, Model) Method

Return this with all Items of type TCast removed

public static Il2CppReferenceArray<TSource> RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, Model removeChildFrom)
    where TSource : Object
    where TCast : Model;

Type parameters

TSource

TCast

The Type of the Items that you want to remove

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

removeChildFrom Il2CppAssets.Scripts.Models.Model

Model to remove the child dependents from

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray) Method

Return this with all Items of type TCast removed

public static Il2CppReferenceArray<TSource> RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
    where TSource : Object
    where TCast : Object;

Type parameters

TSource

TCast

The Type of the Items that you want to remove

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppReferenceArrayExt.ToArray(this Il2CppReferenceArray) Method

Return as a System.Array

public static T[] ToArray<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

T[]

Il2CppReferenceArrayExt.ToIl2CppList(this Il2CppReferenceArray) Method

Return as Il2CppSystem.List

public static List<T> ToIl2CppList<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppSystem.Collections.Generic.List

Il2CppReferenceArrayExt.ToList(this Il2CppReferenceArray) Method

Return as System.List

public static System.Collections.Generic.List<T> ToList<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

System.Collections.Generic.List<T>

Il2CppReferenceArrayExt.ToLockList(this Il2CppReferenceArray) Method

Return as LockList

public static LockList<T> ToLockList<T>(this Il2CppReferenceArray<T> referenceArray)
    where T : Object;

Type parameters

T

Parameters

referenceArray Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

Il2CppAssets.Scripts.Utils.LockList

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