Example #1
0
        public void Execute(ref WooState state)
        {
            int cycles = 0;

            for (int i = 0; i < _Expression.EvaluateFloat(ref state); i++)
            {
                _RepeatBlock.Execute(ref state);
                if (cycles++ > 10000)
                {
                    return;
                }
            }
        }
Example #2
0
        public void Execute(ref WooState state)
        {
            for (int i = 0; i < _IfBlock.Count; i++)
            {
                if (_IfBlock[i]._Condition.Evaluate(ref state))
                {
                    _IfBlock[i]._Block.Execute(ref state);
                    return;
                }
            }

            if (_ElseBlock != null)
            {
                _ElseBlock.Execute(ref state);
            }
        }
Example #3
0
        public void Execute(ref WooState state)
        {
            WooState newState = state.Clone();

            _RuleBlock.Execute(ref newState);
        }
Example #4
0
 public virtual void Execute(ref WooState state)
 {
     block.Execute(ref state);
 }