public void OnEvent(CogbotEvent evt) { if (!EventsEnabled || Skipped(evt)) { return; } Next.OnEvent(evt); }
//SimObjectEvent original = null; public void SendTo(SimEventSubscriber subscriber) { lock (receiversSent) { if (receiversSent.Contains(subscriber)) { return; } receiversSent.Add(subscriber); } subscriber.OnEvent(this); }
//SimObjectEvent original = null; public void SendTo(SimEventSubscriber subscriber) { lock (receiversSent) { if (receiversSent.Contains(subscriber)) return; receiversSent.Add(subscriber); } subscriber.OnEvent(this); }