示例#1
0
        public override ObjectValidation Validate()
        {
            ObjectValidation validation = new ObjectValidation(ObjectValidation.Level.Warning, this);

            validation.Add(ObjectValidation.NullReference(this, $"<i>{description}</i>"));
            validation.Add(ValidateLayers());
            return(validation);
        }
 private void ValidateNull()
 {
     foreach (var t in triggers)
     {
         var validation = ObjectValidation.NullReference(t, $"<i>{t.description}</i>");
         if (validation != null)
         {
             AddMessage(validation);
         }
     }
     foreach (var t in triggerables)
     {
         var validation = ObjectValidation.NullReference(t, $"<i>{t.description}</i>");
         if (validation != null)
         {
             AddMessage(validation);
         }
     }
 }