public static List <string> GetValidationErrors(Dictionary <MechValidationType, List <string> > errorMessages, List <MechValidationType> validationTypes)
 {
     if (_isSimGame)
     {
         validationTypes.Add(MechValidationType.InvalidInventorySlots);
     }
     return(MechValidationRules.GetValidationErrors(errorMessages, validationTypes));
 }
示例#2
0
        public static List <Text> GetValidationErrors(Dictionary <MechValidationType, List <Text> > errorMessages, List <MechValidationType> validationTypes)
        {
            try
            {
                if (_isSimGame)
                {
                    validationTypes.Remove(MechValidationType.InvalidInventorySlots);
                }
            }
            catch (Exception e)
            {
                Control.Logger.Error.Log(e);
            }

            return(MechValidationRules.GetValidationErrors(errorMessages, validationTypes));
        }