BaseStackNode.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. namespace GraphProcessor
  4. {
  5. /// <summary>
  6. /// Data container for the StackNode views
  7. /// </summary>
  8. [System.Serializable]
  9. public class BaseStackNode
  10. {
  11. public Vector2 position;
  12. public string title = "New Stack";
  13. /// <summary>
  14. /// Is the stack accept drag and dropped nodes
  15. /// </summary>
  16. public bool acceptDrop;
  17. /// <summary>
  18. /// Is the stack accepting node created by pressing space over the stack node
  19. /// </summary>
  20. public bool acceptNewNode;
  21. /// <summary>
  22. /// List of node GUID that are in the stack
  23. /// </summary>
  24. /// <typeparam name="string"></typeparam>
  25. /// <returns></returns>
  26. public List< string > nodeGUIDs = new List< string >();
  27. public BaseStackNode(Vector2 position, string title = "Stack", bool acceptDrop = true, bool acceptNewNode = true)
  28. {
  29. this.position = position;
  30. this.title = title;
  31. this.acceptDrop = acceptDrop;
  32. this.acceptNewNode = acceptNewNode;
  33. }
  34. }
  35. }