feat: remove ExportChartData

This commit is contained in:
あかニャン 2024-07-08 02:17:59 +09:00
parent cc7bc8613b
commit 079b7b6495
3 changed files with 0 additions and 71 deletions

View File

@ -1,7 +0,0 @@
<Project>
<PropertyGroup>
<AssemblyName>Assembly-CSharp.ExportChartData.mm</AssemblyName>
<Description>Export chart data to charts.csv</Description>
</PropertyGroup>
<Import Project="..\Mu3Mods.csproj" />
</Project>

View File

@ -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");
}
}

View File

@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterGiveUp", "BetterGiveU
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NaiveRating", "NaiveRating\NaiveRating.csproj", "{1FEA698E-DF5E-46CF-8023-F2B2F57885C5}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NaiveRating", "NaiveRating\NaiveRating.csproj", "{1FEA698E-DF5E-46CF-8023-F2B2F57885C5}"
EndProject 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}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SkipNotice", "SkipNotice\SkipNotice.csproj", "{A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SkipPreMusicRitual", "SkipPreMusicRitual\SkipPreMusicRitual.csproj", "{BB9CB905-9989-466C-9A91-D2F323005237}" 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}.Debug|x64.Build.0 = Debug|x64
{1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Release|x64.ActiveCfg = Release|x64 {1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Release|x64.ActiveCfg = Release|x64
{1FEA698E-DF5E-46CF-8023-F2B2F57885C5}.Release|x64.Build.0 = 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.ActiveCfg = Debug|x64
{A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Debug|x64.Build.0 = Debug|x64 {A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Debug|x64.Build.0 = Debug|x64
{A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Release|x64.ActiveCfg = Release|x64 {A1F32CB9-56C2-458A-B369-C61BD3A6AFBB}.Release|x64.ActiveCfg = Release|x64