Esempio n. 1
0
        public void ExecuteFloat(ref WooState state, string varName, Expression expression)
        {
            double value   = expression.EvaluateFloat(ref state);
            double current = state.GetValueFloat(varName);

            state.SetValue(varName, value + current);
        }
Esempio n. 2
0
 public double EvaluateFloat(ref WooState state)
 {
     if (_Type == VarType.varFloat)
     {
         return(state.GetValueFloat(_Variable));
     }
     else
     {
         throw new EvaluateException("Vector variables can't evaluate to floats.\n");
     }
 }
Esempio n. 3
0
 public void ExecuteFloat(ref WooState state, string varName, Expression expression)
 {
     double value = expression.EvaluateFloat(ref state);
     double current = state.GetValueFloat(varName);
     state.SetValue(varName, value + current);
 }
Esempio n. 4
0
 public double EvaluateFloat(ref WooState state)
 {
     if (_Type== VarType.varFloat)
         return state.GetValueFloat(_Variable);
     else
         throw new EvaluateException("Vector variables can't evaluate to floats.\n");
 }