ModMutator that uses a strongly typed custom data object
public abstract class ModMutator<T> : BTD_Mod_Helper.Api.Towers.ModMutator
T
custom data type
Inheritance System.Object ModContent ModMutator ModMutator
Creates a BehaviorMutator for use with the specified custom data
public BehaviorMutator Create(T data);
data T
custom data
Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator
BehaviorMutator
Gets the TimedMutator for this ModMutator on an entity
public TimedMutator Get(Mutable mutable, out T data);
mutable Il2CppAssets.Scripts.Simulation.Objects.Mutable
mutated entity
data T
custom data
Il2CppAssets.Scripts.Simulation.Objects.TimedMutator
TimedMutator
Gets the stored custom data for the behavior mutator
public virtual T GetData(BehaviorMutator mutator);
mutator Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator
BehaviorMutator
T
json token of custom data
Applies this mutator to a model
public sealed override bool Mutate(Model baseModel, Model model, JToken data);
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
System.Boolean
whether any changes were actually made
Applies this mutator to a model
public abstract bool Mutate(Model baseModel, Model model, T data);
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
System.Boolean
whether any changes were actually made
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);
data Newtonsoft.Json.Linq.JToken
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);
data T