diff --git a/ConsoleTestApp/App.config b/ConsoleTestApp/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/ConsoleTestApp/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ConsoleTestApp/ConsoleTestApp.csproj b/ConsoleTestApp/ConsoleTestApp.csproj new file mode 100644 index 0000000..9b365ff --- /dev/null +++ b/ConsoleTestApp/ConsoleTestApp.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {1B0953DC-3CE0-4982-91C2-0F59635FFA61} + Exe + ConsoleTestApp + ConsoleTestApp + v4.6.1 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {160c10d6-f300-4766-8120-58f0bc4c427a} + ED-Router + + + + \ No newline at end of file diff --git a/ConsoleTestApp/Program.cs b/ConsoleTestApp/Program.cs new file mode 100644 index 0000000..b267604 --- /dev/null +++ b/ConsoleTestApp/Program.cs @@ -0,0 +1,56 @@ +using System; +using System.Text; +using ED_Router; + +namespace ConsolTestApp +{ + class Program + { + static void Main(string[] args) + { + /* + var Api = new SpanchApi(); + var result = Api.PlotRoute("Kashyapa", "Sol", 48); + + StringBuilder route = new StringBuilder(); + + foreach (var system in result.SystemJumps) + { + route.AppendLine(system.System); + } + + Console.Write(route);*/ + + /* + var router = EdRouter.Instance; + router.Start = "Sol"; + router.Destination = "Ao Shun"; + router.Range = 48; + router.Efficiency = 60; + + router.CalculateRoute(); + + Console.WriteLine("Start Sys: {0}", router.CurrentWaypoint); + + router.NextWaypoint(); + Console.WriteLine("Sys 1: {0}", router.CurrentWaypoint); + + router.NextWaypoint(); + Console.WriteLine("Sys 2: {0}", router.CurrentWaypoint); + + router.NextWaypoint(); + Console.WriteLine("Sys 3: {0}", router.CurrentWaypoint); + + router.PreviousWaypoint(); + Console.WriteLine("Sys 2: {0}", router.CurrentWaypoint); + Console.ReadLine(); + */ + + //var l1 = JournalMonitor.GetLocaction("{ \"timestamp\":\"2018 - 03 - 17T20: 05:59Z\", \"event\":\"StartJump\", \"JumpType\":\"Hyperspace\", \"StarSystem\":\"Kyloarph IN-S d4-2021\", \"SystemAddress\":69449931411883, \"StarClass\":\"N\" }"); + //var l2 = JournalMonitor.GetLocaction("{ \"timestamp\":\"2018-03-17T20:03:25Z\", \"event\":\"Location\", \"Docked\":false, \"StarSystem\":\"Kyloarph DB-X e1-5559\", \"SystemAddress\":23876836747476, \"StarPos\":[-7504.34375,-727.28125,21081.59375], \"SystemAllegiance\":\"\", \"SystemEconomy\":\"$economy_None;\", \"SystemEconomy_Localised\":\"n/v\", \"SystemGovernment\":\"$government_None;\", \"SystemGovernment_Localised\":\"n/v\", \"SystemSecurity\":\"$GAlAXY_MAP_INFO_state_anarchy;\", \"SystemSecurity_Localised\":\"Anarchie\", \"Population\":0, \"Body\":\"Kyloarph DB-X e1-5559 1\", \"BodyID\":1, \"BodyType\":\"Planet\" }"); + var l3 = JournalMonitor.GetLocaction("{ \"timestamp\":\"2018-03-17T20:09:52Z\", \"event\":\"Scan\", \"ScanType\":\"Detailed\", \"BodyName\":\"Kyloarph PT-Q d5-3862 A 1\", \"BodyID\":7, \"Parents\":[ {\"Star\":1}, {\"Null\":0} ], \"DistanceFromArrivalLS\":239.561920, \"TidalLock\":false, \"TerraformState\":\"\", \"PlanetClass\":\"High metal content body\", \"Atmosphere\":\"thin sulfur dioxide atmosphere\", \"AtmosphereType\":\"SulphurDioxide\", \"AtmosphereComposition\":[ { \"Name\":\"SulphurDioxide\", \"Percent\":100.000000 } ], \"Volcanism\":\"\", \"MassEM\":0.134808, \"Radius\":3276403.500000, \"SurfaceGravity\":5.005291, \"SurfaceTemperature\":378.430450, \"SurfacePressure\":359.917908, \"Landable\":false, \"Composition\":{ \"Ice\":0.000000, \"Rock\":0.672977, \"Metal\":0.327023 }, \"SemiMajorAxis\":71812833280.000000, \"Eccentricity\":0.000085, \"OrbitalInclination\":-0.000587, \"Periapsis\":246.785690, \"OrbitalPeriod\":10816627.000000, \"RotationPeriod\":208069.937500, \"AxialTilt\":-0.499019 }"); + + + } + } +} diff --git a/ConsoleTestApp/Properties/AssemblyInfo.cs b/ConsoleTestApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c198308 --- /dev/null +++ b/ConsoleTestApp/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("ConsoleTestApp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleTestApp")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("1b0953dc-3ce0-4982-91c2-0f59635ffa61")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ED-Router.UI.Desktop/App.config b/ED-Router.UI.Desktop/App.config new file mode 100644 index 0000000..5bb33fd --- /dev/null +++ b/ED-Router.UI.Desktop/App.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ED-Router.UI.Desktop/App.xaml b/ED-Router.UI.Desktop/App.xaml new file mode 100644 index 0000000..d9c04e5 --- /dev/null +++ b/ED-Router.UI.Desktop/App.xaml @@ -0,0 +1,17 @@ + + + + + + + + + \ No newline at end of file diff --git a/ED-Router.UI.Desktop/App.xaml.cs b/ED-Router.UI.Desktop/App.xaml.cs new file mode 100644 index 0000000..73835f4 --- /dev/null +++ b/ED-Router.UI.Desktop/App.xaml.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace ED_Router.UI.Desktop +{ + /// + /// Interaktionslogik für "App.xaml" + /// + public partial class App : Application + { + private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) + { + MessageBox.Show("An unhandled exception just occurred: " + e.Exception.Message, "Exception Sample", MessageBoxButton.OK, MessageBoxImage.Warning); + e.Handled = true; + } + } +} diff --git a/ED-Router.UI.Desktop/ED-Router.UI.Desktop.csproj b/ED-Router.UI.Desktop/ED-Router.UI.Desktop.csproj new file mode 100644 index 0000000..b7a247e --- /dev/null +++ b/ED-Router.UI.Desktop/ED-Router.UI.Desktop.csproj @@ -0,0 +1,132 @@ + + + + + Debug + AnyCPU + {F120B7B2-5FE9-424F-A5F6-9C0119C5B423} + WinExe + ED_Router.UI.Desktop + ED-Router.UI.Desktop + v4.6.1 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll + + + ..\packages\MvvmLightLibs.5.4.1\lib\net45\GalaSoft.MvvmLight.dll + + + ..\packages\MvvmLightLibs.5.4.1\lib\net45\GalaSoft.MvvmLight.Extras.dll + + + ..\packages\MvvmLightLibs.5.4.1\lib\net45\GalaSoft.MvvmLight.Platform.dll + + + ..\packages\NHotkey.1.2.1\lib\net20\NHotkey.dll + + + ..\packages\NHotkey.Wpf.1.2.1\lib\net35\NHotkey.Wpf.dll + + + + + ..\packages\MvvmLightLibs.5.4.1\lib\net45\System.Windows.Interactivity.dll + True + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + {160c10d6-f300-4766-8120-58f0bc4c427a} + ED-Router + + + {9d0fb9d4-345d-4874-b469-f5caec09ae91} + libspanch + + + + \ No newline at end of file diff --git a/ED-Router.UI.Desktop/MainWindow.xaml b/ED-Router.UI.Desktop/MainWindow.xaml new file mode 100644 index 0000000..0efd746 --- /dev/null +++ b/ED-Router.UI.Desktop/MainWindow.xaml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + +