private static void OnPeriodChange(Cycle.Type period) { foreach (var behaviour in _registeredHandlers) { try { behaviour.Key.OnPeriodChange(period); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } } try { PeriodChange?.Invoke(KoikatuAPI.Instance, new PeriodChangeEventArgs(period)); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } }
public void OnPeriodChange(int period) { PeriodChange?.Invoke(this, new PeriodChangeEventArgs(period)); }