using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SOTF_Struct.Generic; namespace SOTF_Savegame_Editor { public class MapPoint { public MapPoint(int Graph, int Area, string Name) { this.Name = Name; this.AreaMask = Area; this.GraphMask = Graph; this.Position_Outer = null; this.DefaultActive = false; } public MapPoint(int Graph, int Area, string Name, Position outer) { this.Name = Name; this.AreaMask = Area; this.GraphMask = Graph; this.Position_Outer = outer; this.Position_Inner = null; this.DefaultActive = false; } public MapPoint(int Graph, int Area, string Name, Position outer, Position inner) { this.Name = Name; this.AreaMask = Area; this.GraphMask = Graph; this.Position_Outer = outer; this.Position_Inner = inner; this.DefaultActive = false; } public MapPoint(int Graph, int Area, string Name, double x, double y, double z) { this.AreaMask = Area; this.GraphMask = Graph; this.Name = Name; this.Position_Outer = new Position(x, y, z); this.DefaultActive = false; } public MapPoint(int Graph, int Area, string Name, double x1, double y1, double z1, double x2, double y2, double z2) { this.AreaMask = Area; this.GraphMask = Graph; this.Name = Name; this.Position_Outer = new Position(x1, y1, z1); this.Position_Inner = new Position(x2, y2, z2); this.DefaultActive = false; } public MapPoint(int Graph, int Area, string Name, bool DefaultChecked) { this.Name = Name; this.GraphMask = Graph; this.AreaMask = Area; this.Position_Outer = null; this.DefaultActive = DefaultChecked; } public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, Position pos) { this.Name = Name; this.AreaMask = Area; this.GraphMask = Graph; this.Position_Outer = pos; this.DefaultActive = DefaultChecked; } public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, Position outer, Position inner) { this.Name = Name; this.AreaMask = Area; this.GraphMask = Graph; this.Position_Outer = outer; this.Position_Inner = inner; this.DefaultActive = DefaultChecked; } public MapPoint(int Graph, int Area, string Name, bool DefaultChecked, double x1, double y1, double z1, double x2, double y2, double z2) { this.AreaMask = Area; this.GraphMask = Graph; this.Name = Name; this.Position_Outer = new Position(x1, y1, z1); this.Position_Inner = new Position(x2, y2, z2); this.DefaultActive = DefaultChecked; } public string Name { get; set; } public int AreaMask { get; set; } public int GraphMask { get; set; } public Position? Position_Outer { get; set; } public Position? Position_Inner { get; set; } public bool ShowOnMap { get => this.Position_Outer != null; } public bool DefaultActive { get; set; } } }