DataStruct.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Movement_Loop_Generator_2._0
  7. {
  8. struct DataStruct
  9. {
  10. public string Name;
  11. public string Author;
  12. public float XLoc;
  13. public float YLoc;
  14. public float ZLoc;
  15. public int Speed;
  16. public int Delay;
  17. public string Function;
  18. public DataStruct(string name, string author, float xloc, float yloc, float zloc, int speed, int delay, string function)
  19. {
  20. Name = name;
  21. Author = author;
  22. XLoc = xloc;
  23. YLoc = yloc;
  24. ZLoc = zloc;
  25. Speed = speed;
  26. Delay = delay;
  27. Function = function;
  28. }
  29. public string mName
  30. {
  31. get { return Name; }
  32. set { Name = value; }
  33. }
  34. public float mXLoc
  35. {
  36. get { return XLoc; }
  37. set { XLoc = value; }
  38. }
  39. public float mYLoc
  40. {
  41. get { return YLoc; }
  42. set { YLoc = value; }
  43. }
  44. public float mZLoc
  45. {
  46. get { return ZLoc; }
  47. set { ZLoc = value; }
  48. }
  49. public int mSpeed
  50. {
  51. get { return Speed; }
  52. set { Speed = value; }
  53. }
  54. public int mDelay
  55. {
  56. get { return Delay; }
  57. set { Delay = value; }
  58. }
  59. public string mFunction
  60. {
  61. get { return Function; }
  62. set { Function = value; }
  63. }
  64. }
  65. }