Skip to Main Content

BTD_Mod_Helper​.Api​.Towers​.ModMutator_T_


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Towers

ModMutator Class

ModMutator that uses a strongly typed custom data object

public abstract class ModMutator<T> : BTD_Mod_Helper.Api.Towers.ModMutator

Type parameters

T

custom data type

Inheritance System.ObjectModContentModMutator  ModMutator

Methods

ModMutator.Create(T) Method

Creates a BehaviorMutator for use with the specified custom data

public BehaviorMutator Create(T data);

Parameters

data T

custom data

Returns

Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator
BehaviorMutator

ModMutator.Get(Mutable, T) Method

Gets the TimedMutator for this ModMutator on an entity

public TimedMutator Get(Mutable mutable, out T data);

Parameters

mutable Il2CppAssets.Scripts.Simulation.Objects.Mutable

mutated entity

data T

custom data

Returns

Il2CppAssets.Scripts.Simulation.Objects.TimedMutator
TimedMutator

ModMutator.GetData(BehaviorMutator) Method

Gets the stored custom data for the behavior mutator

public virtual T GetData(BehaviorMutator mutator);

Parameters

mutator Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator

BehaviorMutator

Returns

T
json token of custom data

ModMutator.Mutate(Model, Model, JToken) Method

Applies this mutator to a model

public sealed override bool Mutate(Model baseModel, Model model, JToken data);

Parameters

baseModel Il2CppAssets.Scripts.Models.Model

Version of the model with no mutators applied

model Il2CppAssets.Scripts.Models.Model

Current model, the one that should be mutated

data Newtonsoft.Json.Linq.JToken

any custom data for the mutator in the form of JSON

Returns

System.Boolean
whether any changes were actually made

ModMutator.Mutate(Model, Model, T) Method

Applies this mutator to a model

public abstract bool Mutate(Model baseModel, Model model, T data);

Parameters

baseModel Il2CppAssets.Scripts.Models.Model

Version of the model with no mutators applied

model Il2CppAssets.Scripts.Models.Model

Current model, the one that should be mutated

data T

any custom data for the mutator, in the form of the specified struct type

Returns

System.Boolean
whether any changes were actually made

ModMutator.StackCount(JToken) Method

To what amount to override the visual stack count of this mutator on a tower
Requires OverrideStackCount to be true

public sealed override int StackCount(JToken data);

Parameters

data Newtonsoft.Json.Linq.JToken

Returns

System.Int32

ModMutator.StackCount(T) Method

To what amount to override the visual stack count of this mutator on a tower
Requires OverrideStackCount to be true

public virtual int StackCount(T data);

Parameters

data T

Returns

System.Int32