mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 14:10:22 +08:00
refactor(UXAssist): drive lifecycle and save dispatch via ModFeatureRegistry
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user