示例#1
0
        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);
            }
        }
示例#2
0
 public void OnPeriodChange(int period)
 {
     PeriodChange?.Invoke(this, new PeriodChangeEventArgs(period));
 }