diff --git a/.idea/.idea.NodeEditor/.idea/contentModel.xml b/.idea/.idea.NodeEditor/.idea/contentModel.xml index 38e1177..8234ce7 100644 --- a/.idea/.idea.NodeEditor/.idea/contentModel.xml +++ b/.idea/.idea.NodeEditor/.idea/contentModel.xml @@ -18,10 +18,12 @@ + + @@ -34,6 +36,7 @@ + diff --git a/.idea/.idea.NodeEditor/.idea/workspace.xml b/.idea/.idea.NodeEditor/.idea/workspace.xml index e2dffc2..a125e12 100644 --- a/.idea/.idea.NodeEditor/.idea/workspace.xml +++ b/.idea/.idea.NodeEditor/.idea/workspace.xml @@ -28,9 +28,9 @@ - - - + + + @@ -55,11 +55,15 @@ - + + + @@ -108,7 +114,7 @@ 1608418540783 - + 1608580007149 @@ -117,7 +123,14 @@ - @@ -167,12 +180,17 @@ - + + + + + - + \ No newline at end of file diff --git a/Controls/Path.xaml.cs b/Controls/Path.xaml.cs index c695536..5639972 100644 --- a/Controls/Path.xaml.cs +++ b/Controls/Path.xaml.cs @@ -14,6 +14,8 @@ namespace NodeEditor.Controls public Modes Mode { get; set; } public int Cost { get; set; } + public Direction Direction { get; set; } + public Path() { Difficulty = new[] {1, 1, 1, 1, 1}; @@ -21,6 +23,7 @@ namespace NodeEditor.Controls LvlRequired = 0; Mode = Modes.Walk; Cost = 0; + Direction = Direction.Both; Paths.Add(this); InitializeComponent(); } @@ -31,6 +34,7 @@ namespace NodeEditor.Controls LvlRequired = 0; Mode = Modes.Walk; Cost = 0; + Direction = Direction.Both; Paths.Add(this); InitializeComponent(); } @@ -41,6 +45,7 @@ namespace NodeEditor.Controls LvlRequired = 0; Mode = mode; Cost = 0; + Direction = Direction.Both; Paths.Add(this); InitializeComponent(); } @@ -51,6 +56,7 @@ namespace NodeEditor.Controls LvlRequired = 0; Mode = mode; Cost = cost; + Direction = Direction.Both; Paths.Add(this); InitializeComponent(); } @@ -61,6 +67,7 @@ namespace NodeEditor.Controls LvlRequired = lvlRequired; Mode = mode; Cost = cost; + Direction = Direction.Both; Paths.Add(this); InitializeComponent(); } @@ -71,6 +78,18 @@ namespace NodeEditor.Controls LvlRequired = lvlRequired; Mode = mode; Cost = cost; + Direction = Direction.Both; + Paths.Add(this); + InitializeComponent(); + } + public Path(int distance, Modes mode, int cost, int lvlRequired, int[] difficulty, Direction direction) + { + Difficulty = difficulty; + Distance = distance; + LvlRequired = lvlRequired; + Mode = mode; + Cost = cost; + Direction = direction; Paths.Add(this); InitializeComponent(); } diff --git a/Extensions/Direction.cs b/Extensions/Direction.cs new file mode 100644 index 0000000..06d05a5 --- /dev/null +++ b/Extensions/Direction.cs @@ -0,0 +1,9 @@ +namespace NodeEditor.Extensions +{ + public enum Direction + { + Both, + TowardsA, + TowardsB + } +} \ No newline at end of file diff --git a/Extensions/SeaskipperCosts.cs b/Extensions/SeaskipperCosts.cs new file mode 100644 index 0000000..6faf7c8 --- /dev/null +++ b/Extensions/SeaskipperCosts.cs @@ -0,0 +1,71 @@ +namespace NodeEditor.Extensions +{ + public enum SeaskipperCosts + { + NemractSelchar = 12, + NemractLlevigar = 42, + NemractRoosterIsland = 4, + NemractHalfMoonIsland = 8, + NemractMageIsland = 8, + NemractNodgujIsland = 14, + NemractZhightIsland = 16, + NemractDurumIsles = 4, + NemractBearZoo = 4, + SelcharLlevigar = 24, + SelcharNodgujIsland = 8, + SelcharSkiensIsland = 10, + SelcharVolcanicIsles = 18, + SelcharMaroPeaks = 12, + SelcharPirateCove = 16, + SelcharDeadIsland = 16, + SelcharGallionsGraveyard = 16, + LlevigarVolcanicIsles = 16, + LlevigarMaroPeaks = 18, + LlevigarPirateCove = 20, + LlevigarDeadIsland = 24, + LlevigarJofashDocks = 32, + LlevigarGallionsGraveyard = 16, + RoosterIslandNemract = 8, + RoosterIslandSelchar = 10, + RoosterIslandLlevigar = 38, + HalfMoonIslandNemract = 10, + HalfMoonIslandSelchar = 14, + HalfMoonIslandLlevigar = 40, + MageIslandNemract = 10, + MageIslandSelchar = 10, + MageIslandLlevigar = 40, + NodgujIslandNemract = 22, + NodgujIslandSelchar = 12, + NodgujIslandLlevigar = 32, + ZhightIslandNemract = 16, + ZhightIslandSelchar = 12, + ZhightIslandLlevigar = 30, + SkiensIslandNemract = 26, + SkiensIslandSelchar = 12, + SkiensIslandLlevigar = 30, + VolcanicIslesNemract = 34, + VolcanicIslesSelchar = 26, + VolcanicIslesLlevigar = 26, + MaroPeaksNemract = 28, + MaroPeaksSelchar = 20, + MaroPeaksLlevigar = 28, + PirateCoveNemract = 28, + PirateCoveSelchar = 14, + PirateCoveLlevigar = 28, + DeadIslandNemract = 32, + DeadIslandSelchar = 22, + DeadIslandLlevigar = 32, + JofashDocksNemract = 38, + JofashDocksSelchar = 26, + JofashDocksLlevigar = 38, + GallionsGraveyardNemract = 24, + GallionsGraveyardSelchar = 14, + GallionsGraveyardLlevigar = 28, + DurumIslesNemract = 8, + DurumIslesSelchar = 10, + DurumIslesLlevigar = 38, + BearZooNemract = 8, + BearZooSelchar = 10, + BearZooLlevigar = 38 + } +} \ No newline at end of file diff --git a/NodeEditor.csproj b/NodeEditor.csproj index 598be96..6ae815c 100644 --- a/NodeEditor.csproj +++ b/NodeEditor.csproj @@ -53,6 +53,7 @@ 4.0 + @@ -71,6 +72,7 @@ Path.xaml + @@ -92,6 +94,7 @@ App.xaml Code + MainWindow.xaml Code @@ -127,6 +130,7 @@ + 0.9.2