1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 21:33:28 +08:00

work in progress

This commit is contained in:
2025-11-30 18:08:13 +08:00
parent 3f7c384284
commit 29ee32b11b
8 changed files with 168 additions and 3 deletions

View File

@@ -33,12 +33,13 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
private readonly Harmony _harmony = new(PluginInfo.PLUGIN_GUID);
#region IModCanSave
private const ushort ModSaveVersion = 1;
private const ushort ModSaveVersion = 2;
public void Export(BinaryWriter w)
{
w.Write(ModSaveVersion);
FactoryPatch.Export(w);
PersistPatch.ExportClusterUploadResults(w);
}
public void Import(BinaryReader r)
@@ -46,6 +47,10 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
var version = r.ReadUInt16();
if (version <= 0) return;
FactoryPatch.Import(r);
if (version > 1)
{
PersistPatch.ImportClusterUploadResults(r);
}
}
public void IntoOtherSave()