BF2Statistics.MedalData.ConditionList.ValidateParam C# (CSharp) Method

ValidateParam() protected method

Validates that the given parameter is a valid return type to make this condition list work properly
protected ValidateParam ( int ParamId, ReturnType RType ) : bool
ParamId int The current parameter index
RType ReturnType The return type if the current parameter
return bool
        protected bool ValidateParam(int ParamId, ReturnType RType)
        {
            switch (Type)
            {
                case ConditionType.And:
                case ConditionType.Or:
                case ConditionType.Not:
                    return (RType == ReturnType.Bool);
                case ConditionType.Plus:
                case ConditionType.Div:
                    return (RType == ReturnType.Number);
            }

            return true;
        }