From 079b7b64954066215e0258f44e37a8ce2c059a23 Mon Sep 17 00:00:00 2001 From: akanyan Date: Mon, 8 Jul 2024 02:17:59 +0900 Subject: [PATCH] feat: remove ExportChartData --- ExportChartData/ExportChartData.csproj | 7 --- ExportChartData/MU3.Data/patch_DataManager.cs | 58 ------------------- Mu3Mods.sln | 6 -- 3 files changed, 71 deletions(-) delete mode 100644 ExportChartData/ExportChartData.csproj delete mode 100644 ExportChartData/MU3.Data/patch_DataManager.cs diff --git a/ExportChartData/ExportChartData.csproj b/ExportChartData/ExportChartData.csproj deleted file mode 100644 index 72e8824..0000000 --- a/ExportChartData/ExportChartData.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - Assembly-CSharp.ExportChartData.mm - Export chart data to charts.csv - - - \ No newline at end of file diff --git a/ExportChartData/MU3.Data/patch_DataManager.cs b/ExportChartData/MU3.Data/patch_DataManager.cs deleted file mode 100644 index f3aa6b0..0000000 --- a/ExportChartData/MU3.Data/patch_DataManager.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.IO; - -namespace MU3.Data; - -class patch_DataManager: DataManager { - private extern void orig_linkFumenAnalysisData(); - private const string SEPARATOR = "$"; - private string PrintHeader() { - return string.Join(SEPARATOR, new string[] { - "id", - "name", - "difficulty", - "name for sort", - "artist", - "genre", - "internal level", - "charter", - "max platinum score", - "release date", - "release version", - "bpm", - "location" - }); - } - private string PrintLine(FumenData fumen, MusicData mus, int level) { - return string.Join(SEPARATOR, new string[] { - mus.id.ToString(), - mus.name, - level.ToString(), - mus.nameForSort, - mus.artistName, - mus.genreName, - fumen.fumenConst.ToString(), - fumen.notesDesignerName ?? "", - fumen.platinumScoreMax.ToString(), - mus.ReleaseVersion.ToUniversalTime().ToString(), - mus.versionTitle, - fumen.bpm.ToString(), - fumen.fumenFile.Substring(fumen.fumenFile.LastIndexOf('A')) - }); - } - - private void linkFumenAnalysisData() { - orig_linkFumenAnalysisData(); - using StreamWriter writer = new("charts.csv"); - writer.WriteLine(PrintHeader()); - foreach(var mus in allMusicData) { - int i = 0; - foreach(var fumen in mus.fumenData) { - if(fumen.isExist) { - writer.WriteLine(PrintLine(fumen, mus, i)); - } - i += 1; - } - } - UnityEngine.Debug.Log("[ExportChartData] Written to charts.csv"); - } -} \ No newline at end of file diff --git a/Mu3Mods.sln b/Mu3Mods.sln index 0f32ef3..0fb92ee 100644 --- a/Mu3Mods.sln +++ b/Mu3Mods.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterGiveUp", "BetterGiveU EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NaiveRating", "NaiveRating\NaiveRating.csproj", "{1FEA698E-DF5E-46CF-8023-F2B2F57885C5}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExportChartData", "ExportChartData\ExportChartData.csproj", "{8BFC37B1-C6C8-492A-B8DC-99BD1F1B9576}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SkipNotice", "SkipNotice\SkipNotice.csproj", "{A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SkipPreMusicRitual", "SkipPreMusicRitual\SkipPreMusicRitual.csproj", "{BB9CB905-9989-466C-9A91-D2F323005237}" @@ -55,10 +53,6 @@ Global {1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Debug|x64.Build.0 = Debug|x64 {1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Release|x64.ActiveCfg = Release|x64 {1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Release|x64.Build.0 = Release|x64 - {8BFC37B1-C6C8-492A-B8DC-99BD1F1B9576}.Debug|x64.ActiveCfg = Debug|x64 - {8BFC37B1-C6C8-492A-B8DC-99BD1F1B9576}.Debug|x64.Build.0 = Debug|x64 - {8BFC37B1-C6C8-492A-B8DC-99BD1F1B9576}.Release|x64.ActiveCfg = Release|x64 - {8BFC37B1-C6C8-492A-B8DC-99BD1F1B9576}.Release|x64.Build.0 = Release|x64 {A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Debug|x64.ActiveCfg = Debug|x64 {A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Debug|x64.Build.0 = Debug|x64 {A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Release|x64.ActiveCfg = Release|x64