NodeProto.cs 535 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections.Generic;
  2. namespace Model
  3. {
  4. public class NodeProto
  5. {
  6. public int Id;
  7. public string Name;
  8. public string Desc = "";
  9. public BehaviorTreeArgsDict Args;
  10. public List<NodeProto> children = new List<NodeProto>();
  11. public List<NodeProto> Children
  12. {
  13. get
  14. {
  15. return this.children;
  16. }
  17. set
  18. {
  19. this.children = value;
  20. }
  21. }
  22. public NodeProto()
  23. {
  24. this.Args = new BehaviorTreeArgsDict();
  25. }
  26. public NodeProto(BehaviorTreeArgsDict dict)
  27. {
  28. this.Args = dict;
  29. }
  30. }
  31. }