MapPoint.cs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using SOTF_Struct.Generic;
  7. namespace SOTF_Savegame_Editor {
  8. public class MapPoint {
  9. public MapPoint(int Graph, int Area, string Name) {
  10. this.Name = Name;
  11. this.AreaMask = Area;
  12. this.GraphMask = Graph;
  13. this.Position_Outer = null;
  14. this.DefaultActive = false;
  15. }
  16. public MapPoint(int Graph, int Area, string Name, Position outer) {
  17. this.Name = Name;
  18. this.AreaMask = Area;
  19. this.GraphMask = Graph;
  20. this.Position_Outer = outer;
  21. this.Position_Inner = null;
  22. this.DefaultActive = false;
  23. }
  24. public MapPoint(int Graph, int Area, string Name, Position outer, Position inner) {
  25. this.Name = Name;
  26. this.AreaMask = Area;
  27. this.GraphMask = Graph;
  28. this.Position_Outer = outer;
  29. this.Position_Inner = inner;
  30. this.DefaultActive = false;
  31. }
  32. public MapPoint(int Graph, int Area, string Name, double x, double y, double z) {
  33. this.AreaMask = Area;
  34. this.GraphMask = Graph;
  35. this.Name = Name;
  36. this.Position_Outer = new Position(x, y, z);
  37. this.DefaultActive = false;
  38. }
  39. public MapPoint(int Graph, int Area, string Name, double x1, double y1, double z1, double x2, double y2, double z2) {
  40. this.AreaMask = Area;
  41. this.GraphMask = Graph;
  42. this.Name = Name;
  43. this.Position_Outer = new Position(x1, y1, z1);
  44. this.Position_Inner = new Position(x2, y2, z2);
  45. this.DefaultActive = false;
  46. }
  47. public MapPoint(int Graph, int Area, string Name, bool DefaultChecked) {
  48. this.Name = Name;
  49. this.GraphMask = Graph;
  50. this.AreaMask = Area;
  51. this.Position_Outer = null;
  52. this.DefaultActive = DefaultChecked;
  53. }
  54. public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, Position pos) {
  55. this.Name = Name;
  56. this.AreaMask = Area;
  57. this.GraphMask = Graph;
  58. this.Position_Outer = pos;
  59. this.DefaultActive = DefaultChecked;
  60. }
  61. public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, Position outer, Position inner) {
  62. this.Name = Name;
  63. this.AreaMask = Area;
  64. this.GraphMask = Graph;
  65. this.Position_Outer = outer;
  66. this.Position_Inner = inner;
  67. this.DefaultActive = DefaultChecked;
  68. }
  69. public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, double x1, double y1, double z1, double x2, double y2, double z2) {
  70. this.AreaMask = Area;
  71. this.GraphMask = Graph;
  72. this.Name = Name;
  73. this.Position_Outer = new Position(x1, y1, z1);
  74. this.Position_Inner = new Position(x2, y2, z2);
  75. this.DefaultActive = DefaultChecked;
  76. }
  77. public string Name { get; set; }
  78. public int AreaMask { get; set; }
  79. public int GraphMask { get; set; }
  80. public Position? Position_Outer { get; set; }
  81. public Position? Position_Inner { get; set; }
  82. public bool ShowOnMap { get => this.Position_Outer != null; }
  83. public bool DefaultActive { get; set; }
  84. }
  85. }