Skip to Main Content

BTD_Mod_Helper​.Extensions​.DeconstructExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

DeconstructExt Class

Adding more deconstruct methods to things

public static class DeconstructExt

Inheritance System.Object  DeconstructExt

Methods

DeconstructExt.Deconstruct(this Rect, float, float, float, float) Method

Deconstruct a rectangle

public static void Deconstruct(this Rect rect, out float x, out float y, out float width, out float height);

Parameters

rect UnityEngine.Rect

x System.Single

y System.Single

width System.Single

height System.Single

DeconstructExt.Deconstruct(this Vector2, float, float) Method

For some reason the normal deconstruct isn't accessible in all places?

public static void Deconstruct(this Vector2 vector2, out float x, out float y);

Parameters

vector2 UnityEngine.Vector2

x System.Single

y System.Single

DeconstructExt.Deconstruct<T1,T2>(this KeyValuePair<T1,T2>, T1, T2) Method

For some reason the normal deconstruct isn't accessible in all places?

public static void Deconstruct<T1,T2>(this System.Collections.Generic.KeyValuePair<T1,T2> kvp, out T1 t1, out T2 t2);

Type parameters

T1

T2

Parameters

kvp System.Collections.Generic.KeyValuePair<T1,T2>

t1 T1

t2 T2

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