public override Validation Validate()
        {
            Validation validation = new Validation(Validation.Level.Warning, this);

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