Add loose file DB loading

This commit is contained in:
beerpsi 2024-05-24 21:46:31 +07:00
parent f0be9cdb9a
commit 1056550e9d
146 changed files with 11575 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Ports" Version="9.0.0-preview.4.24266.19" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,154 @@
// See https://aka.ms/new-console-template for more information
using System.Collections.Immutable;
using System.Reflection;
using System.Text;
var assemblyPath = args[0];
var targetPath = args[1];
var assembly = Assembly.LoadFrom(assemblyPath);
var types = assembly.GetTypes().Where(t => t.FullName.StartsWith("DB.") && t.FullName.EndsWith("IDEnum")).ToImmutableList();
foreach (var type in types)
{
var tableRecordType = assembly.GetType(type.FullName.Replace("IDEnum", "TableRecord"))!;
var patchClassName = $"patch_{type.Name}";
var readCommands = new StringBuilder();
var writeCommands = new StringBuilder();
var tableRecordFields = new StringBuilder();
foreach (var field in tableRecordType.GetFields(BindingFlags.Public | BindingFlags.Instance))
{
tableRecordFields.Append("public ");
if (field.FieldType.IsEnum)
{
tableRecordFields.Append("System.Int32 ");
}
else
{
tableRecordFields.Append(field.FieldType.FullName);
tableRecordFields.Append(" ");
}
tableRecordFields.Append(field.Name);
tableRecordFields.AppendLine(";");
readCommands.Append(field.Name)
.Append(" = (")
.Append(field.FieldType.FullName)
.Append(")src[i].")
.Append(field.Name)
.Append(", ");
writeCommands.Append(field.Name)
.Append(" = (")
.Append(field.FieldType.IsEnum ? "int" : field.FieldType.FullName)
.Append(")src[i].")
.Append(field.Name)
.Append(", ");
}
using var sw = File.CreateText(Path.Combine(targetPath, patchClassName + ".cs"));
sw.WriteLine($$"""
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class {{type.Name}}
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static {{tableRecordType.Name}}[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class Serializable{{tableRecordType.Name}} {
{{tableRecordFields}}
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class {{patchClassName}} : {{type.Name}} {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<Serializable{{tableRecordType.Name}}>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new {{tableRecordType.Name}} { {{readCommands}} };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<Serializable{{tableRecordType.Name}}>() {
records = new Serializable{{tableRecordType.Name}}[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new Serializable{{tableRecordType.Name}} { {{writeCommands}} };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}
""");
}
using var dbLoaderSw = File.CreateText(Path.Combine(targetPath, "DBLoader.cs"));
dbLoaderSw.WriteLine($$"""
// ReSharper disable CheckNamespace
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
namespace DB;
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class DBLoader
{
public static void LoadAll(string dirPath)
{
{{string.Join("\n", types.Select(t => $"{t.Name}.LoadFromFile(Path.Combine(dirPath, \"{t.Name.Replace("IDEnum", "TableRecord")}.json\"));"))}}
}
public static void DumpAll(string dirPath)
{
{{string.Join("\n", types.Select(t => $"{t.Name}.DumpToFile(Path.Combine(dirPath, \"{t.Name.Replace("IDEnum", "TableRecord")}.json\"));"))}}
}
}
""");

View File

@ -0,0 +1,296 @@
// ReSharper disable CheckNamespace
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
namespace DB;
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class DBLoader
{
public static void LoadAll(string dirPath)
{
AdvertiseVolumeIDEnum.LoadFromFile(Path.Combine(dirPath, "AdvertiseVolumeTableRecord.json"));
ButtonIDEnum.LoadFromFile(Path.Combine(dirPath, "ButtonTableRecord.json"));
ButtonKindIDEnum.LoadFromFile(Path.Combine(dirPath, "ButtonKindTableRecord.json"));
ButtonPosIDEnum.LoadFromFile(Path.Combine(dirPath, "ButtonPosTableRecord.json"));
ButtonTypeIDEnum.LoadFromFile(Path.Combine(dirPath, "ButtonTypeTableRecord.json"));
CharlistAbcLargeIDEnum.LoadFromFile(Path.Combine(dirPath, "CharlistAbcLargeTableRecord.json"));
CharlistAbcSmallIDEnum.LoadFromFile(Path.Combine(dirPath, "CharlistAbcSmallTableRecord.json"));
CharlistIDEnum.LoadFromFile(Path.Combine(dirPath, "CharlistTableRecord.json"));
CharlistNumIDEnum.LoadFromFile(Path.Combine(dirPath, "CharlistNumTableRecord.json"));
CharlistSymboleIDEnum.LoadFromFile(Path.Combine(dirPath, "CharlistSymboleTableRecord.json"));
CommonMessageIDEnum.LoadFromFile(Path.Combine(dirPath, "CommonMessageTableRecord.json"));
ContentBitIDEnum.LoadFromFile(Path.Combine(dirPath, "ContentBitTableRecord.json"));
DeluxcorerankrateIDEnum.LoadFromFile(Path.Combine(dirPath, "DeluxcorerankrateTableRecord.json"));
ErrorIDEnum.LoadFromFile(Path.Combine(dirPath, "ErrorTableRecord.json"));
EventModeMusicCountIDEnum.LoadFromFile(Path.Combine(dirPath, "EventModeMusicCountTableRecord.json"));
ExtendContentBitIDEnum.LoadFromFile(Path.Combine(dirPath, "ExtendContentBitTableRecord.json"));
HardInitializeTextIDEnum.LoadFromFile(Path.Combine(dirPath, "HardInitializeTextTableRecord.json"));
JvsButtonIDEnum.LoadFromFile(Path.Combine(dirPath, "JvsButtonTableRecord.json"));
JvsOutputIDEnum.LoadFromFile(Path.Combine(dirPath, "JvsOutputTableRecord.json"));
KeyCodeIDEnum.LoadFromFile(Path.Combine(dirPath, "KeyCodeTableRecord.json"));
LedBlockIDEnum.LoadFromFile(Path.Combine(dirPath, "LedBlockTableRecord.json"));
MachineGroupIDEnum.LoadFromFile(Path.Combine(dirPath, "MachineGroupTableRecord.json"));
MaintenanceInfoIDEnum.LoadFromFile(Path.Combine(dirPath, "MaintenanceInfoTableRecord.json"));
NgwordExIDEnum.LoadFromFile(Path.Combine(dirPath, "NgwordExTableRecord.json"));
NgwordJpIDEnum.LoadFromFile(Path.Combine(dirPath, "NgwordJpTableRecord.json"));
OptionAppealIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionAppealTableRecord.json"));
OptionBodybrightnessIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionBodybrightnessTableRecord.json"));
OptionBreakseIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionBreakseTableRecord.json"));
OptionCateDesignIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCateDesignTableRecord.json"));
OptionCateGameIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCateGameTableRecord.json"));
OptionCategoryIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCategoryTableRecord.json"));
OptionCateJudgeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCateJudgeTableRecord.json"));
OptionCateSoundIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCateSoundTableRecord.json"));
OptionCateSpeedIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCateSpeedTableRecord.json"));
OptionCenterdisplayIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCenterdisplayTableRecord.json"));
OptionCriticalIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionCriticalTableRecord.json"));
OptionDispbarlineIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDispbarlineTableRecord.json"));
OptionDispchainIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDispchainTableRecord.json"));
OptionDispjudgeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDispjudgeTableRecord.json"));
OptionDispjudgeposIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDispjudgeposTableRecord.json"));
OptionDispjudgetouchposIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDispjudgetouchposTableRecord.json"));
OptionDisprateIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionDisprateTableRecord.json"));
OptionExseIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionExseTableRecord.json"));
OptionGameholdIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionGameholdTableRecord.json"));
OptionGameoutlineIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionGameoutlineTableRecord.json"));
OptionGameslideIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionGameslideTableRecord.json"));
OptionGametapIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionGametapTableRecord.json"));
OptionHeadphonevolumeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionHeadphonevolumeTableRecord.json"));
OptionJudgetimingIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionJudgetimingTableRecord.json"));
OptionKindIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionKindTableRecord.json"));
OptionMatchingIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionMatchingTableRecord.json"));
OptionMirrorIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionMirrorTableRecord.json"));
OptionMoviebrightnessIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionMoviebrightnessTableRecord.json"));
OptionNotesizeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionNotesizeTableRecord.json"));
OptionNotespeedIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionNotespeedTableRecord.json"));
OptionOutframedisplayIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionOutframedisplayTableRecord.json"));
OptionRootIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionRootTableRecord.json"));
OptionSlideseIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionSlideseTableRecord.json"));
OptionSlidesizeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionSlidesizeTableRecord.json"));
OptionSlidespeedIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionSlidespeedTableRecord.json"));
OptionStarrotateIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionStarrotateTableRecord.json"));
OptionStartypeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionStartypeTableRecord.json"));
OptionSubmonAchiveIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionSubmonAchiveTableRecord.json"));
OptionSubmonitorIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionSubmonitorTableRecord.json"));
OptionTapSuccessSeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionTapSuccessSeTableRecord.json"));
OptionToucheffectIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionToucheffectTableRecord.json"));
OptionTouchsizeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionTouchsizeTableRecord.json"));
OptionTouchspeedIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionTouchspeedTableRecord.json"));
OptionTrackskipIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionTrackskipTableRecord.json"));
OptionVolumeAnswerSoundIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionVolumeAnswerSoundTableRecord.json"));
OptionVolumeIDEnum.LoadFromFile(Path.Combine(dirPath, "OptionVolumeTableRecord.json"));
PartyAdvertiseStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyAdvertiseStateTableRecord.json"));
PartyConnectStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyConnectStateTableRecord.json"));
PartyDeliveryCheckerErrorIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyDeliveryCheckerErrorTableRecord.json"));
PartyDeliveryCheckerStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyDeliveryCheckerStateTableRecord.json"));
PartyHeartBeatStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyHeartBeatStateTableRecord.json"));
PartyPartyClientStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyPartyClientStateTableRecord.json"));
PartyPartyHostStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyPartyHostStateTableRecord.json"));
PartyPartyJoinResultIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyPartyJoinResultTableRecord.json"));
PartyPartyManagerStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyPartyManagerStateTableRecord.json"));
PartyPartyStanceIDEnum.LoadFromFile(Path.Combine(dirPath, "PartyPartyStanceTableRecord.json"));
PartySettingClientStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartySettingClientStateTableRecord.json"));
PartySettingErrorIDEnum.LoadFromFile(Path.Combine(dirPath, "PartySettingErrorTableRecord.json"));
PartySettingHostStateIDEnum.LoadFromFile(Path.Combine(dirPath, "PartySettingHostStateTableRecord.json"));
PhotoeditDateIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditDateTableRecord.json"));
PhotoeditLayoutIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditLayoutTableRecord.json"));
PhotoeditPlayerinfoIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditPlayerinfoTableRecord.json"));
PhotoeditSettingIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditSettingTableRecord.json"));
PhotoeditShopnameIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditShopnameTableRecord.json"));
PhotoeditStampIDEnum.LoadFromFile(Path.Combine(dirPath, "PhotoeditStampTableRecord.json"));
PlayComboflagIDEnum.LoadFromFile(Path.Combine(dirPath, "PlayComboflagTableRecord.json"));
PlaystatusTabIDEnum.LoadFromFile(Path.Combine(dirPath, "PlaystatusTabTableRecord.json"));
PlaySyncflagIDEnum.LoadFromFile(Path.Combine(dirPath, "PlaySyncflagTableRecord.json"));
RateColorIDEnum.LoadFromFile(Path.Combine(dirPath, "RateColorTableRecord.json"));
RatingTableIDEnum.LoadFromFile(Path.Combine(dirPath, "RatingTableTableRecord.json"));
SortMusicIDEnum.LoadFromFile(Path.Combine(dirPath, "SortMusicTableRecord.json"));
SortRootIDEnum.LoadFromFile(Path.Combine(dirPath, "SortRootTableRecord.json"));
SortTabIDEnum.LoadFromFile(Path.Combine(dirPath, "SortTabTableRecord.json"));
SystemInitializeTextIDEnum.LoadFromFile(Path.Combine(dirPath, "SystemInitializeTextTableRecord.json"));
TestmodeAccountingIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeAccountingTableRecord.json"));
TestmodeAimeReadIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeAimeReadTableRecord.json"));
TestmodeBackupclearConfirmIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBackupclearConfirmTableRecord.json"));
TestmodeBackupclearDoneIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBackupclearDoneTableRecord.json"));
TestmodeBackupclearIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBackupclearTableRecord.json"));
TestmodeBookkeep1IDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBookkeep1TableRecord.json"));
TestmodeBookkeep2IDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBookkeep2TableRecord.json"));
TestmodeBookkeep3IDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeBookkeep3TableRecord.json"));
TestmodeCameraIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeCameraTableRecord.json"));
TestmodeCloseChangedIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeCloseChangedTableRecord.json"));
TestmodeCloseConfirmIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeCloseConfirmTableRecord.json"));
TestmodeCloseIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeCloseTableRecord.json"));
TestmodeDebugEventsetIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeDebugEventsetTableRecord.json"));
TestmodeDebugInisetIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeDebugInisetTableRecord.json"));
TestmodeDebugLedIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeDebugLedTableRecord.json"));
TestmodeDebugSoundtestIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeDebugSoundtestTableRecord.json"));
TestmodeDownloadIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeDownloadTableRecord.json"));
TestmodeEmoneyAuthIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeEmoneyAuthTableRecord.json"));
TestmodeEmoneyIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeEmoneyTableRecord.json"));
TestmodeEmoneyRemoveIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeEmoneyRemoveTableRecord.json"));
TestmodeGamesettingIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeGamesettingTableRecord.json"));
TestmodeGenericIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeGenericTableRecord.json"));
TestmodeInputIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeInputTableRecord.json"));
TestmodeMonitorIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeMonitorTableRecord.json"));
TestmodeNetworkIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeNetworkTableRecord.json"));
TestmodeOutputIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeOutputTableRecord.json"));
TestmodeRootIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeRootTableRecord.json"));
TestmodeSystemInfo1IDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeSystemInfo1TableRecord.json"));
TestmodeSystemInfo2IDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeSystemInfo2TableRecord.json"));
TestmodeSystemtestIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeSystemtestTableRecord.json"));
TestmodeTouchpanel1pIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeTouchpanel1pTableRecord.json"));
TestmodeTouchpanel2pIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeTouchpanel2pTableRecord.json"));
TestmodeTouchpanelIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeTouchpanelTableRecord.json"));
TestmodeVfdIDEnum.LoadFromFile(Path.Combine(dirPath, "TestmodeVfdTableRecord.json"));
VsghostnpcIDEnum.LoadFromFile(Path.Combine(dirPath, "VsghostnpcTableRecord.json"));
WindowKindIDEnum.LoadFromFile(Path.Combine(dirPath, "WindowKindTableRecord.json"));
WindowMessageIDEnum.LoadFromFile(Path.Combine(dirPath, "WindowMessageTableRecord.json"));
WindowPositionIDEnum.LoadFromFile(Path.Combine(dirPath, "WindowPositionTableRecord.json"));
WindowSizeIDEnum.LoadFromFile(Path.Combine(dirPath, "WindowSizeTableRecord.json"));
}
public static void DumpAll(string dirPath)
{
AdvertiseVolumeIDEnum.DumpToFile(Path.Combine(dirPath, "AdvertiseVolumeTableRecord.json"));
ButtonIDEnum.DumpToFile(Path.Combine(dirPath, "ButtonTableRecord.json"));
ButtonKindIDEnum.DumpToFile(Path.Combine(dirPath, "ButtonKindTableRecord.json"));
ButtonPosIDEnum.DumpToFile(Path.Combine(dirPath, "ButtonPosTableRecord.json"));
ButtonTypeIDEnum.DumpToFile(Path.Combine(dirPath, "ButtonTypeTableRecord.json"));
CharlistAbcLargeIDEnum.DumpToFile(Path.Combine(dirPath, "CharlistAbcLargeTableRecord.json"));
CharlistAbcSmallIDEnum.DumpToFile(Path.Combine(dirPath, "CharlistAbcSmallTableRecord.json"));
CharlistIDEnum.DumpToFile(Path.Combine(dirPath, "CharlistTableRecord.json"));
CharlistNumIDEnum.DumpToFile(Path.Combine(dirPath, "CharlistNumTableRecord.json"));
CharlistSymboleIDEnum.DumpToFile(Path.Combine(dirPath, "CharlistSymboleTableRecord.json"));
CommonMessageIDEnum.DumpToFile(Path.Combine(dirPath, "CommonMessageTableRecord.json"));
ContentBitIDEnum.DumpToFile(Path.Combine(dirPath, "ContentBitTableRecord.json"));
DeluxcorerankrateIDEnum.DumpToFile(Path.Combine(dirPath, "DeluxcorerankrateTableRecord.json"));
ErrorIDEnum.DumpToFile(Path.Combine(dirPath, "ErrorTableRecord.json"));
EventModeMusicCountIDEnum.DumpToFile(Path.Combine(dirPath, "EventModeMusicCountTableRecord.json"));
ExtendContentBitIDEnum.DumpToFile(Path.Combine(dirPath, "ExtendContentBitTableRecord.json"));
HardInitializeTextIDEnum.DumpToFile(Path.Combine(dirPath, "HardInitializeTextTableRecord.json"));
JvsButtonIDEnum.DumpToFile(Path.Combine(dirPath, "JvsButtonTableRecord.json"));
JvsOutputIDEnum.DumpToFile(Path.Combine(dirPath, "JvsOutputTableRecord.json"));
KeyCodeIDEnum.DumpToFile(Path.Combine(dirPath, "KeyCodeTableRecord.json"));
LedBlockIDEnum.DumpToFile(Path.Combine(dirPath, "LedBlockTableRecord.json"));
MachineGroupIDEnum.DumpToFile(Path.Combine(dirPath, "MachineGroupTableRecord.json"));
MaintenanceInfoIDEnum.DumpToFile(Path.Combine(dirPath, "MaintenanceInfoTableRecord.json"));
NgwordExIDEnum.DumpToFile(Path.Combine(dirPath, "NgwordExTableRecord.json"));
NgwordJpIDEnum.DumpToFile(Path.Combine(dirPath, "NgwordJpTableRecord.json"));
OptionAppealIDEnum.DumpToFile(Path.Combine(dirPath, "OptionAppealTableRecord.json"));
OptionBodybrightnessIDEnum.DumpToFile(Path.Combine(dirPath, "OptionBodybrightnessTableRecord.json"));
OptionBreakseIDEnum.DumpToFile(Path.Combine(dirPath, "OptionBreakseTableRecord.json"));
OptionCateDesignIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCateDesignTableRecord.json"));
OptionCateGameIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCateGameTableRecord.json"));
OptionCategoryIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCategoryTableRecord.json"));
OptionCateJudgeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCateJudgeTableRecord.json"));
OptionCateSoundIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCateSoundTableRecord.json"));
OptionCateSpeedIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCateSpeedTableRecord.json"));
OptionCenterdisplayIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCenterdisplayTableRecord.json"));
OptionCriticalIDEnum.DumpToFile(Path.Combine(dirPath, "OptionCriticalTableRecord.json"));
OptionDispbarlineIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDispbarlineTableRecord.json"));
OptionDispchainIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDispchainTableRecord.json"));
OptionDispjudgeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDispjudgeTableRecord.json"));
OptionDispjudgeposIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDispjudgeposTableRecord.json"));
OptionDispjudgetouchposIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDispjudgetouchposTableRecord.json"));
OptionDisprateIDEnum.DumpToFile(Path.Combine(dirPath, "OptionDisprateTableRecord.json"));
OptionExseIDEnum.DumpToFile(Path.Combine(dirPath, "OptionExseTableRecord.json"));
OptionGameholdIDEnum.DumpToFile(Path.Combine(dirPath, "OptionGameholdTableRecord.json"));
OptionGameoutlineIDEnum.DumpToFile(Path.Combine(dirPath, "OptionGameoutlineTableRecord.json"));
OptionGameslideIDEnum.DumpToFile(Path.Combine(dirPath, "OptionGameslideTableRecord.json"));
OptionGametapIDEnum.DumpToFile(Path.Combine(dirPath, "OptionGametapTableRecord.json"));
OptionHeadphonevolumeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionHeadphonevolumeTableRecord.json"));
OptionJudgetimingIDEnum.DumpToFile(Path.Combine(dirPath, "OptionJudgetimingTableRecord.json"));
OptionKindIDEnum.DumpToFile(Path.Combine(dirPath, "OptionKindTableRecord.json"));
OptionMatchingIDEnum.DumpToFile(Path.Combine(dirPath, "OptionMatchingTableRecord.json"));
OptionMirrorIDEnum.DumpToFile(Path.Combine(dirPath, "OptionMirrorTableRecord.json"));
OptionMoviebrightnessIDEnum.DumpToFile(Path.Combine(dirPath, "OptionMoviebrightnessTableRecord.json"));
OptionNotesizeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionNotesizeTableRecord.json"));
OptionNotespeedIDEnum.DumpToFile(Path.Combine(dirPath, "OptionNotespeedTableRecord.json"));
OptionOutframedisplayIDEnum.DumpToFile(Path.Combine(dirPath, "OptionOutframedisplayTableRecord.json"));
OptionRootIDEnum.DumpToFile(Path.Combine(dirPath, "OptionRootTableRecord.json"));
OptionSlideseIDEnum.DumpToFile(Path.Combine(dirPath, "OptionSlideseTableRecord.json"));
OptionSlidesizeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionSlidesizeTableRecord.json"));
OptionSlidespeedIDEnum.DumpToFile(Path.Combine(dirPath, "OptionSlidespeedTableRecord.json"));
OptionStarrotateIDEnum.DumpToFile(Path.Combine(dirPath, "OptionStarrotateTableRecord.json"));
OptionStartypeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionStartypeTableRecord.json"));
OptionSubmonAchiveIDEnum.DumpToFile(Path.Combine(dirPath, "OptionSubmonAchiveTableRecord.json"));
OptionSubmonitorIDEnum.DumpToFile(Path.Combine(dirPath, "OptionSubmonitorTableRecord.json"));
OptionTapSuccessSeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionTapSuccessSeTableRecord.json"));
OptionToucheffectIDEnum.DumpToFile(Path.Combine(dirPath, "OptionToucheffectTableRecord.json"));
OptionTouchsizeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionTouchsizeTableRecord.json"));
OptionTouchspeedIDEnum.DumpToFile(Path.Combine(dirPath, "OptionTouchspeedTableRecord.json"));
OptionTrackskipIDEnum.DumpToFile(Path.Combine(dirPath, "OptionTrackskipTableRecord.json"));
OptionVolumeAnswerSoundIDEnum.DumpToFile(Path.Combine(dirPath, "OptionVolumeAnswerSoundTableRecord.json"));
OptionVolumeIDEnum.DumpToFile(Path.Combine(dirPath, "OptionVolumeTableRecord.json"));
PartyAdvertiseStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyAdvertiseStateTableRecord.json"));
PartyConnectStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyConnectStateTableRecord.json"));
PartyDeliveryCheckerErrorIDEnum.DumpToFile(Path.Combine(dirPath, "PartyDeliveryCheckerErrorTableRecord.json"));
PartyDeliveryCheckerStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyDeliveryCheckerStateTableRecord.json"));
PartyHeartBeatStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyHeartBeatStateTableRecord.json"));
PartyPartyClientStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyPartyClientStateTableRecord.json"));
PartyPartyHostStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyPartyHostStateTableRecord.json"));
PartyPartyJoinResultIDEnum.DumpToFile(Path.Combine(dirPath, "PartyPartyJoinResultTableRecord.json"));
PartyPartyManagerStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartyPartyManagerStateTableRecord.json"));
PartyPartyStanceIDEnum.DumpToFile(Path.Combine(dirPath, "PartyPartyStanceTableRecord.json"));
PartySettingClientStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartySettingClientStateTableRecord.json"));
PartySettingErrorIDEnum.DumpToFile(Path.Combine(dirPath, "PartySettingErrorTableRecord.json"));
PartySettingHostStateIDEnum.DumpToFile(Path.Combine(dirPath, "PartySettingHostStateTableRecord.json"));
PhotoeditDateIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditDateTableRecord.json"));
PhotoeditLayoutIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditLayoutTableRecord.json"));
PhotoeditPlayerinfoIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditPlayerinfoTableRecord.json"));
PhotoeditSettingIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditSettingTableRecord.json"));
PhotoeditShopnameIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditShopnameTableRecord.json"));
PhotoeditStampIDEnum.DumpToFile(Path.Combine(dirPath, "PhotoeditStampTableRecord.json"));
PlayComboflagIDEnum.DumpToFile(Path.Combine(dirPath, "PlayComboflagTableRecord.json"));
PlaystatusTabIDEnum.DumpToFile(Path.Combine(dirPath, "PlaystatusTabTableRecord.json"));
PlaySyncflagIDEnum.DumpToFile(Path.Combine(dirPath, "PlaySyncflagTableRecord.json"));
RateColorIDEnum.DumpToFile(Path.Combine(dirPath, "RateColorTableRecord.json"));
RatingTableIDEnum.DumpToFile(Path.Combine(dirPath, "RatingTableTableRecord.json"));
SortMusicIDEnum.DumpToFile(Path.Combine(dirPath, "SortMusicTableRecord.json"));
SortRootIDEnum.DumpToFile(Path.Combine(dirPath, "SortRootTableRecord.json"));
SortTabIDEnum.DumpToFile(Path.Combine(dirPath, "SortTabTableRecord.json"));
SystemInitializeTextIDEnum.DumpToFile(Path.Combine(dirPath, "SystemInitializeTextTableRecord.json"));
TestmodeAccountingIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeAccountingTableRecord.json"));
TestmodeAimeReadIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeAimeReadTableRecord.json"));
TestmodeBackupclearConfirmIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBackupclearConfirmTableRecord.json"));
TestmodeBackupclearDoneIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBackupclearDoneTableRecord.json"));
TestmodeBackupclearIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBackupclearTableRecord.json"));
TestmodeBookkeep1IDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBookkeep1TableRecord.json"));
TestmodeBookkeep2IDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBookkeep2TableRecord.json"));
TestmodeBookkeep3IDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeBookkeep3TableRecord.json"));
TestmodeCameraIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeCameraTableRecord.json"));
TestmodeCloseChangedIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeCloseChangedTableRecord.json"));
TestmodeCloseConfirmIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeCloseConfirmTableRecord.json"));
TestmodeCloseIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeCloseTableRecord.json"));
TestmodeDebugEventsetIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeDebugEventsetTableRecord.json"));
TestmodeDebugInisetIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeDebugInisetTableRecord.json"));
TestmodeDebugLedIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeDebugLedTableRecord.json"));
TestmodeDebugSoundtestIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeDebugSoundtestTableRecord.json"));
TestmodeDownloadIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeDownloadTableRecord.json"));
TestmodeEmoneyAuthIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeEmoneyAuthTableRecord.json"));
TestmodeEmoneyIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeEmoneyTableRecord.json"));
TestmodeEmoneyRemoveIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeEmoneyRemoveTableRecord.json"));
TestmodeGamesettingIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeGamesettingTableRecord.json"));
TestmodeGenericIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeGenericTableRecord.json"));
TestmodeInputIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeInputTableRecord.json"));
TestmodeMonitorIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeMonitorTableRecord.json"));
TestmodeNetworkIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeNetworkTableRecord.json"));
TestmodeOutputIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeOutputTableRecord.json"));
TestmodeRootIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeRootTableRecord.json"));
TestmodeSystemInfo1IDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeSystemInfo1TableRecord.json"));
TestmodeSystemInfo2IDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeSystemInfo2TableRecord.json"));
TestmodeSystemtestIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeSystemtestTableRecord.json"));
TestmodeTouchpanel1pIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeTouchpanel1pTableRecord.json"));
TestmodeTouchpanel2pIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeTouchpanel2pTableRecord.json"));
TestmodeTouchpanelIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeTouchpanelTableRecord.json"));
TestmodeVfdIDEnum.DumpToFile(Path.Combine(dirPath, "TestmodeVfdTableRecord.json"));
VsghostnpcIDEnum.DumpToFile(Path.Combine(dirPath, "VsghostnpcTableRecord.json"));
WindowKindIDEnum.DumpToFile(Path.Combine(dirPath, "WindowKindTableRecord.json"));
WindowMessageIDEnum.DumpToFile(Path.Combine(dirPath, "WindowMessageTableRecord.json"));
WindowPositionIDEnum.DumpToFile(Path.Combine(dirPath, "WindowPositionTableRecord.json"));
WindowSizeIDEnum.DumpToFile(Path.Combine(dirPath, "WindowSizeTableRecord.json"));
}
}

View File

@ -0,0 +1,78 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class AdvertiseVolumeIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static AdvertiseVolumeTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableAdvertiseVolumeTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
public System.Int32 Volume;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_AdvertiseVolumeIDEnum : AdvertiseVolumeIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableAdvertiseVolumeTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new AdvertiseVolumeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, Volume = (System.Int32)src[i].Volume, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableAdvertiseVolumeTableRecord>() {
records = new SerializableAdvertiseVolumeTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableAdvertiseVolumeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, Volume = (System.Int32)src[i].Volume, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,79 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class ButtonIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static ButtonTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableButtonTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.Int32 Kind;
public System.Int32 Type;
public System.Int32 Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_ButtonIDEnum : ButtonIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableButtonTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new ButtonTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Kind = (DB.ButtonKindID)src[i].Kind, Type = (DB.ButtonTypeID)src[i].Type, Name = (System.Int32)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableButtonTableRecord>() {
records = new SerializableButtonTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableButtonTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Kind = (int)src[i].Kind, Type = (int)src[i].Type, Name = (System.Int32)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class ButtonKindIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static ButtonKindTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableButtonKindTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_ButtonKindIDEnum : ButtonKindIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableButtonKindTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new ButtonKindTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableButtonKindTableRecord>() {
records = new SerializableButtonKindTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableButtonKindTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class ButtonPosIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static ButtonPosTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableButtonPosTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_ButtonPosIDEnum : ButtonPosIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableButtonPosTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new ButtonPosTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableButtonPosTableRecord>() {
records = new SerializableButtonPosTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableButtonPosTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class ButtonTypeIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static ButtonTypeTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableButtonTypeTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_ButtonTypeIDEnum : ButtonTypeIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableButtonTypeTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new ButtonTypeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableButtonTypeTableRecord>() {
records = new SerializableButtonTypeTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableButtonTypeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CharlistAbcLargeIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CharlistAbcLargeTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCharlistAbcLargeTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CharlistAbcLargeIDEnum : CharlistAbcLargeIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCharlistAbcLargeTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CharlistAbcLargeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCharlistAbcLargeTableRecord>() {
records = new SerializableCharlistAbcLargeTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCharlistAbcLargeTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CharlistAbcSmallIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CharlistAbcSmallTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCharlistAbcSmallTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CharlistAbcSmallIDEnum : CharlistAbcSmallIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCharlistAbcSmallTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CharlistAbcSmallTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCharlistAbcSmallTableRecord>() {
records = new SerializableCharlistAbcSmallTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCharlistAbcSmallTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CharlistIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CharlistTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCharlistTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CharlistIDEnum : CharlistIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCharlistTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CharlistTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCharlistTableRecord>() {
records = new SerializableCharlistTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCharlistTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CharlistNumIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CharlistNumTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCharlistNumTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CharlistNumIDEnum : CharlistNumIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCharlistNumTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CharlistNumTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCharlistNumTableRecord>() {
records = new SerializableCharlistNumTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCharlistNumTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,77 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CharlistSymboleIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CharlistSymboleTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCharlistSymboleTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CharlistSymboleIDEnum : CharlistSymboleIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCharlistSymboleTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CharlistSymboleTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCharlistSymboleTableRecord>() {
records = new SerializableCharlistSymboleTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCharlistSymboleTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, };
}
File.WriteAllText(filename, JsonUtility.ToJson(table, true), Encoding.UTF8);
}
}

View File

@ -0,0 +1,78 @@
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Text;
using MonoMod;
using LooseDBTables;
using UnityEngine;
namespace DB;
[MonoModIgnore]
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class CommonMessageIDEnum
{
public static extern bool LoadFromFile(string filename);
public static extern void DumpToFile(string filename);
protected static CommonMessageTableRecord[] records;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
[Serializable]
public class SerializableCommonMessageTableRecord {
public System.Int32 EnumValue;
public System.String EnumName;
public System.String Name;
public System.String NameEx;
}
[GeneratedCode("LooseDBTables.GeneratePatches", "1.0.0.0")]
public class patch_CommonMessageIDEnum : CommonMessageIDEnum {
public new static bool LoadFromFile(string filename) {
if (!File.Exists(filename)) {
return false;
}
var table = JsonUtility.FromJson<Table<SerializableCommonMessageTableRecord>>(File.ReadAllText(filename));
try
{
if (table.records.Length != records.Length) {
Debug.LogError($"Count read error: {filename}");
return false;
}
var src = table.records;
var dst = records;
for (var i = 0; i < table.records.Length; i++) {
dst[i] = new CommonMessageTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, NameEx = (System.String)src[i].NameEx, };
}
}
catch
{
Debug.LogError($"File read error: {filename}");
return false;
}
return true;
}
public new static void DumpToFile(string filename) {
var table = new Table<SerializableCommonMessageTableRecord>() {
records = new SerializableCommonMessageTableRecord[records.Length]
};
var src = records;
var dst = table.records;
for (var i = 0; i < records.Length; i++) {
dst[i] = new SerializableCommonMessageTableRecord { EnumValue = (System.Int32)src[i].EnumValue, EnumName = (System.String)src[i].EnumName, Name = (System.String)src[i].Name, NameEx