Interface IModifierFormulaData
The data associated with a IModifierFormula
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IModifierFormulaData : IEntityData, IData
Properties
Formula
The mathematical formula that will be parsed. Must follow the following rules:
- Must contain only numbers, parentheses, IModifierGroupData ids and supported functions
- Must have a space between each token in the formula
- 1 + 2 + ( 4 * max ( 3 , 2 ) ) = Good
- 1 + 2 + (4 * max(3, 2)) = Bad
- Supported functions are: min(), max(), log(), pow()
- Reserved word "base" is swapped out with a base amount in IModifierFormulaParser
Referenced IModifierGroupData will be evaluated and injected in place before the formula is evaluated.
Declaration
string Formula { get; }
Property Value
Type | Description |
---|---|
String |
TargetModifiableTypes
The Types of IModifiable that can be affected by this IModifierFormula
Declaration
Type[] TargetModifiableTypes { get; }
Property Value
Type | Description |
---|---|
Type[] |