BehaviorNode.cs 687 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Collections.Generic;
  2. namespace Egametang
  3. {
  4. public class BehaviorNode
  5. {
  6. private int type;
  7. private string name;
  8. private List<int> args;
  9. private List<BehaviorNode> children;
  10. public int Type
  11. {
  12. get
  13. {
  14. return type;
  15. }
  16. set
  17. {
  18. type = value;
  19. }
  20. }
  21. public string Name
  22. {
  23. get
  24. {
  25. return name;
  26. }
  27. set
  28. {
  29. name = value;
  30. }
  31. }
  32. public List<int> Args
  33. {
  34. get
  35. {
  36. return args;
  37. }
  38. set
  39. {
  40. args = value;
  41. }
  42. }
  43. public List<BehaviorNode> Children
  44. {
  45. get
  46. {
  47. return children;
  48. }
  49. set
  50. {
  51. children = value;
  52. }
  53. }
  54. }
  55. }