public void RaiseNotifications(CounterChange counterChange) { OnCounterChange?.Invoke(counterChange); foreach (var connection in Connections) { if (!connection.Value.IsDisposed) { connection.Value.SendCounterChanges(counterChange); } } }
protected virtual void _onCounterChange() { HarvestBoxEventArgs args = new HarvestBoxEventArgs(this); OnCounterChange?.Invoke(this, args); }
protected virtual void _OnCounterChange() { OnCounterChange?.Invoke(this, new MonsterAilmentEventArgs(this)); }