internal static void CoordinateWriteEvent(ChaFileCoordinate file) { if (CoordinateBeingSaved == null) { return; } foreach (var entry in CoordinateBeingSaved.GetInvocationList()) { var handler = (CoordinateEventHandler)entry; try { handler.Invoke(file); } catch (Exception ex) { Logger.Log(LogLevel.Error, $"Subscriber crash in {nameof(ExtendedSave)}.{nameof(CoordinateBeingSaved)} - {ex}"); } } }
internal static void coordinateWriteEvent(ChaFileCoordinate file) { CoordinateBeingSaved?.Invoke(file); }