Values

using Databrain.Stats;

public class StatsValue : DataObject{}

StatsValue are values which can be modified with a modifier (StatsModifier).

API

ModifiedValue

Returns the modified value

UnmodifiedValue

Returns the un-modified value

AddModifier

Add a modifier to this stats value

// Value
public StatsValue modifiableValue;    
// Modifier
public StatsModifier modifier;

// Add modifier
modifiableValue.AddModifier(modifier);

RemoveModifier

Remove a modifier from the value of this stat

RemoveAllModifiers

Remove all modifiers from the value of this stat

Last updated