Пример #1
0
 void NotifyMap()
 {
     for (int i = 0; i < clientsCount; i++)
     {
         if (clients[i] == null)
         {
             continue;
         }
         if (!clients[i].connected)
         {
             continue;
         }
         if (clients[i].notifyMapAction == null)
         {
             NotifyMapAction notify = new NotifyMapAction();
             notify.server              = this;
             notify.clientId            = i;
             clients[i].notifyMapAction = notify;
             platform.QueueUserWorkItem(notify);
         }
     }
 }
Пример #2
0
 void NotifyMap()
 {
     for (int i = 0; i < clientsCount; i++)
     {
         if (clients[i] == null)
         {
             continue;
         }
         if (!clients[i].connected)
         {
             continue;
         }
         if (clients[i].notifyMapAction == null)
         {
             NotifyMapAction notify = new NotifyMapAction();
             notify.server = this;
             notify.clientId = i;
             clients[i].notifyMapAction = notify;
             platform.QueueUserWorkItem(notify);
         }
     }
 }