internal void RaiseOnWake(string sender = null) { if (OnWake != null) { OnWake.BeginInvoke(sender, null, null); } }
/// <summary> /// /// </summary> public void WakeMobs() { Parallel.ForEach(_repository.Keys, bucket => Parallel.ForEach(_repository.Get(bucket), agent => agent.Wake())); OnWake?.Invoke(this, null); }