Class NumberEffector
Performs an arithmetical operation with one or two operands.
The expected parameters follow.
operand1 expects the first operand.
operand2 expects the second operand (only for binary operators).
operator expects an arithmetical operator such as NEGATION, INCREMENT, DECREMENT, ADDITION, SUBSTRACTION, MULTIPLICATION, DIVISION or SET.
result expects either ScenarioContext.<key> to impact the scenario context or SequenceContext.<place id>.<key> to impact the sequence context.
Inheritance
NumberEffector
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("NumberEffector", "SEVEN.Extra")]
[Renamed("SEVEN.Arithmetics.NumberEffector", "SEVEN.Extra")]
public class NumberEffector : AEffector
Constructors
NumberEffector(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
protected NumberEffector(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
operand1
Declaration
[ConfigurationParameter("operand1", Necessity.Required)]
protected float operand1
Field Value
operand2
Declaration
[ConfigurationParameter("operand2", Necessity.Optional)]
protected float operand2
Field Value
operator
The arithmetical operator
Declaration
[ConfigurationParameter("operator", Necessity.Required)]
protected NumberEffector.ArithmeticalOperator @operator
Field Value
result
The result of the operation
Declaration
[ContextVariable("result", "The result of the operation")]
protected ContextVariable<float> result
Field Value
Methods
Compute(float, float, ArithmeticalOperator)
Declaration
public static float Compute(float operand1, float operand2, NumberEffector.ArithmeticalOperator @operator)
Parameters
Returns
EffectorUpdate()
Declaration
public override void EffectorUpdate()
Overrides