Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

NesterStateAnalyser.cs 867B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. namespace Unity.VisualScripting
  3. {
  4. [Analyser(typeof(INesterState))]
  5. public class NesterStateAnalyser<TNesterState> : StateAnalyser<TNesterState>
  6. where TNesterState : class, INesterState
  7. {
  8. public NesterStateAnalyser(GraphReference reference, TNesterState state) : base(reference, state) { }
  9. protected override IEnumerable<Warning> Warnings()
  10. {
  11. foreach (var baseWarning in base.Warnings())
  12. {
  13. yield return baseWarning;
  14. }
  15. if (state.childGraph == null)
  16. {
  17. yield return Warning.Caution("Missing nested graph.");
  18. }
  19. if (state.nest.hasBackgroundEmbed)
  20. {
  21. yield return Warning.Caution("Background embed graph detected.");
  22. }
  23. }
  24. }
  25. }