예제 #1
0
 public OperatorBase(RuleOperator belong,
                     string name = OperatorBase.Name,
                     int dim     = OperatorBase.m_v_dim)
 {
     m_parent = belong;
     m_name   = name;
     Dim      = dim;
 }
예제 #2
0
        static public List <Card> Compute(RuleObject obj)
        {
            List <Card> cardList = new List <Card>();

            if (null == obj || null == obj.m_data || string.IsNullOrEmpty(obj.m_ruleType))
            {
                return(cardList);
            }

            RuleOperator r = RuleType.Instance.GetRegister(obj.m_ruleType);

            if (null == r)
            {
                return(cardList);
            }

            cardList = r.runParser(obj.m_data) as List <Card>;

            return(cardList);
        }
 public AttributeMultiply(RuleOperator belong, string name = AttributeMultiply.Name,
                          int dim = AttributeMultiply.m_v_dim)
     : base(belong, name, m_v_dim)
 {
 }
예제 #4
0
 public AttributeAdd(RuleOperator belong, string name = AttributeAdd.Name,
                     int dim = AttributeAdd.m_v_dim)
     : base(belong, name, m_v_dim)
 {
 }