refactor(UXAssist): drive lifecycle and save dispatch via ModFeatureRegistry

This commit is contained in:
soarqin committed 2026-06-23 03:18:36 +08:00
1 parent ce199374b4
commit f822c1a5c6
3 files changed
+24 -24

No files matched your search

+4 -1
View File
@@ -135,6 +135,9 @@ public static class FactoryPatch
EjectorBufferCount.SettingChanged += (_, _) => BuildingBufferPatch.TweakBuildingBuffer.RefreshEjectorBufferCount();
SiloBufferCount.SettingChanged += (_, _) => BuildingBufferPatch.TweakBuildingBuffer.RefreshSiloBufferCount();
PressShiftToTakeWholeBeltItemsEnabled.SettingChanged += (_, _) => BuildToolPatch.PressShiftToTakeWholeBeltItems.Enable(PressShiftToTakeWholeBeltItemsEnabled.Value);
UXAssist.RegisterExporter(Export);
UXAssist.RegisterImporter((r, version) => Import(r, version));
}
public static void Start()
@@ -219,7 +222,7 @@ public static class FactoryPatch
BeltSignalPatch.Export(w);
}
public static void Import(BinaryReader r)
public static void Import(BinaryReader r, ushort version)
{
BeltSignalPatch.Import(r);
}