/// <summary>
 /// 添加简单条件
 /// </summary>
 /// <param name="isReset"></param>
 /// <param name="accType"></param>
 /// <param name="conditions"></param>
 public void Add(bool isReset, ACCType accType, params SimpleActionCondition[] conditions)
 {
     if (isReset)
     {
         Clear();
     }
     if (accType == ACCType.And)
     {
         andSimpleConditions.AddRange(conditions);
     }
     else if (accType == ACCType.Or)
     {
         orSimpleConditions.AddRange(conditions);
     }
 }
Example #2
0
 public void Add(ACCType accType, params SimpleCondition[] conditions)
 {
     if (!IsReseted)
     {
         CLog.Error("ACM 组件没有Reset,无法添加条件");
         return;
     }
     if (conditions == null || conditions.Length <= 0)
     {
         return;
     }
     if (accType == ACCType.And)
     {
         andSimpleConditions.AddRange(conditions);
     }
     else if (accType == ACCType.Or)
     {
         orSimpleConditions.AddRange(conditions);
     }
 }