예제 #1
0
 public void OnEvent(CogbotEvent evt)
 {
     if (!EventsEnabled || Skipped(evt))
     {
         return;
     }
     Next.OnEvent(evt);
 }
예제 #2
0
        //SimObjectEvent original = null;

        public void SendTo(SimEventSubscriber subscriber)
        {
            lock (receiversSent)
            {
                if (receiversSent.Contains(subscriber))
                {
                    return;
                }
                receiversSent.Add(subscriber);
            }
            subscriber.OnEvent(this);
        }
예제 #3
0
        //SimObjectEvent original = null;

        public void SendTo(SimEventSubscriber subscriber)
        {
            lock (receiversSent)
            {
                if (receiversSent.Contains(subscriber)) return;
                receiversSent.Add(subscriber);
            }
            subscriber.OnEvent(this);
        }