public BTConditionSingleOperation(ConditionOperationType operation, V targetValue, Func <V> getter) : base()
 {
     mTargetValueCondition = GenericValue.CreateConditionValue <V>("", targetValue, operation);
     mGetter = getter;
     DebugUtils.Assert(mGetter != null, "");
     DebugUtils.Assert(mTargetValueCondition != null, "");
 }
Exemplo n.º 2
0
        /// <summary>
        /// 添加条件
        /// </summary>
        /// <param name="parameterName">条件参数名</param>
        /// <param name="comType">比较类别</param>
        /// <param name="value">目标值</param>
        /// <returns></returns>
        public StateConditions With <T>(string parameterName, ConditionOperationType cot, T value)
        {
            // 这里不去重复
            // 比如 条件是一个区间
            GenericValue condition = GenericValue.CreateConditionValue(parameterName, value, cot);

            mConditions.Add(condition);
            return(this);
        }