Ejemplo n.º 1
0
        public XMLRules.ActionType MakeStateChangeAction(string name, AiRuleEngine.VariableType type, ArithmeticExpression value)
        {
            XMLRules.ActionType  action     = new XMLRules.ActionType();
            AssignmentExpression assignment = new AssignmentExpression();

            assignment.AddVariable(MakeVariable(name, type).GetVariable());
            assignment.AddExpression(value);

            action.AddCertainty(new Altova.Types.SchemaDecimal(100));
            action.AddChangeState(assignment);

            return(action);
        }