Exemplo n.º 1
0
 public void NotifyAll(ChunkState state)
 {
     // Notify each registered listener
     for (int i = 0; i < Listeners.Length; i++)
     {
         ChunkEvent l = Listeners[i];
         if (l != null)
         {
             l.OnNotified(this, state);
         }
     }
 }
Exemplo n.º 2
0
 public void NotifyOne(IEventListener <ChunkState> listener, ChunkState state)
 {
     // Notify one of the listeners
     for (int i = 0; i < Listeners.Length; i++)
     {
         ChunkEvent l = Listeners[i];
         if (l == listener)
         {
             l.OnNotified(this, state);
             return;
         }
     }
 }