From b3724bc7529108a62b9c7bb4541122ea0240ea04 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Tue, 22 Oct 2024 22:23:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.xaml | 9 + App.xaml.cs | 14 + AssemblyInfo.cs | 10 + H5MotaUpdate.csproj | 15 + H5MotaUpdate.sln | 25 ++ MainWindow.xaml | 28 ++ MainWindow.xaml.cs | 28 ++ ViewModels/MainViewModel.cs | 189 ++++++++++++ ViewModels/Migrator/DataJSMigrator.cs | 331 +++++++++++++++++++++ ViewModels/Migrator/EnemysJSMigrator.cs | 216 ++++++++++++++ ViewModels/Migrator/FloorsMigrator.cs | 170 +++++++++++ ViewModels/Migrator/IconsJSMigrator.cs | 117 ++++++++ ViewModels/Migrator/ItemsJSMigrator.cs | 117 ++++++++ ViewModels/Migrator/MapsJSMigrator.cs | 188 ++++++++++++ ViewModels/Migrator/MediaSourceMigrator.cs | 226 ++++++++++++++ ViewModels/Migrator/ServerTableMigrator.cs | 54 ++++ ViewModels/Utils/FileUtils.cs | 155 ++++++++++ ViewModels/Utils/StringUtils.cs | 174 +++++++++++ ViewModels/Utils/VersionUtils.cs | 57 ++++ 19 files changed, 2123 insertions(+) create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 AssemblyInfo.cs create mode 100644 H5MotaUpdate.csproj create mode 100644 H5MotaUpdate.sln create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 ViewModels/MainViewModel.cs create mode 100644 ViewModels/Migrator/DataJSMigrator.cs create mode 100644 ViewModels/Migrator/EnemysJSMigrator.cs create mode 100644 ViewModels/Migrator/FloorsMigrator.cs create mode 100644 ViewModels/Migrator/IconsJSMigrator.cs create mode 100644 ViewModels/Migrator/ItemsJSMigrator.cs create mode 100644 ViewModels/Migrator/MapsJSMigrator.cs create mode 100644 ViewModels/Migrator/MediaSourceMigrator.cs create mode 100644 ViewModels/Migrator/ServerTableMigrator.cs create mode 100644 ViewModels/Utils/FileUtils.cs create mode 100644 ViewModels/Utils/StringUtils.cs create mode 100644 ViewModels/Utils/VersionUtils.cs diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..f598828 --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..4cd2db0 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WpfApp7 +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/H5MotaUpdate.csproj b/H5MotaUpdate.csproj new file mode 100644 index 0000000..2d044b9 --- /dev/null +++ b/H5MotaUpdate.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net8.0-windows + enable + enable + true + + + + + + + diff --git a/H5MotaUpdate.sln b/H5MotaUpdate.sln new file mode 100644 index 0000000..8aa7af4 --- /dev/null +++ b/H5MotaUpdate.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H5MotaUpdate", "H5MotaUpdate.csproj", "{47588914-BA36-4776-A2EF-268CA2F4670D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {47588914-BA36-4776-A2EF-268CA2F4670D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47588914-BA36-4776-A2EF-268CA2F4670D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47588914-BA36-4776-A2EF-268CA2F4670D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47588914-BA36-4776-A2EF-268CA2F4670D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {28674D31-0DB9-4B3C-B931-D4BB89121469} + EndGlobalSection +EndGlobal diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..ebbf6a6 --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + +