using Cthangover.Core.Actions; using Cthangover.Core.Mods; namespace Cthangover.Mods.Map { /// /// Wires the map subsystem into the kernel. On /// OnModResourcesReady it installs the zone-state hooks into /// — export into the save's /// __core__ slot, restore from a loaded save, and the /// new-game override reset — so the core save pipeline keeps working /// against the mod-owned singleton. /// public class MapModInitializer : IModInitializer { /// No per-mod work: the bridge binding happens once the whole mod set is ready. public void OnModLoaded(string modId) { } /// Installs the zone-state hooks (first registration wins). public void OnModResourcesReady() { var service = MapZoneService.Instance; MapStateBridge.Register(service.ExportState, service.ImportState, service.ResetOverrides); } } }