public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(prefab, "Prefab");

            return(dataModelValidator.Errors);
        }
Example #2
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateModel(model, "Model");

            return(dataModelValidator.Errors);
        }
Example #3
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateList(waterBiomes, "Water Level");
            dataModelValidator.Errors.AddRange(ValidateLevelsThresholding());

            return(dataModelValidator.Errors);
        }
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateModel(biomesDiagram, "Biomes Diagram");
            dataModelValidator.ValidateModel(waterLayers, "Water Layers");

            return(dataModelValidator.Errors);
        }
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateList(fences, "Fences");
            dataModelValidator.ValidateList(bigObjects, "BigObjects");
            dataModelValidator.ValidateList(objects, "Objects");

            return(dataModelValidator.Errors);
        }
Example #6
0
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(ground, "Ground");
            dataModelValidator.ValidateList(trees, "Trees");
            dataModelValidator.ValidateList(locations, "Locations");
            dataModelValidator.ValidateList(objects, "Objects");

            return(dataModelValidator.Errors);
        }
        public IEnumerable <ValidationError> Validate()
        {
            DataModelValidator dataModelValidator = new DataModelValidator();

            dataModelValidator.ValidateProperty(topLeft, "TopLeft");
            dataModelValidator.ValidateProperty(topLeftInside, "TopLeftInside");
            dataModelValidator.ValidateProperty(topMiddle, "TopMiddle");
            dataModelValidator.ValidateProperty(topRight, "TopRight");
            dataModelValidator.ValidateProperty(topRightInside, "TopRightInside");
            dataModelValidator.ValidateProperty(middleLeft, "MiddleLeft");
            dataModelValidator.ValidateProperty(middleRight, "MiddleRight");
            dataModelValidator.ValidateProperty(bottomLeft, "BottomLeft");
            dataModelValidator.ValidateProperty(bottomLeftInside, "BottomLeftInside");
            dataModelValidator.ValidateProperty(bottomMiddle, "BottomMiddle");
            dataModelValidator.ValidateProperty(bottomRight, "BottomRight");
            dataModelValidator.ValidateProperty(bottomRightInside, "BottomRightInside");

            return(dataModelValidator.Errors);
        }