Пример #1
0
 /// <summary>
 /// Loops through online players, it is quite pointless. It would be more effecent to just use Server.Players.ForEach(stuff in here);
 /// </summary>
 /// <param name="a"></param>
 public static void ForeachPlayer(ForeachPlayerDelegate a)
 {
     for (int i = 0; i < Players.Count; i++)
     {
         if (Players.Count > i)
         {
             a.Invoke(Players[i]);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Loops through online players, it is quite pointless. It would be more effecent to just use Server.Players.ForEach(stuff in here);
 /// </summary>
 /// <param name="a"></param>
 public static void ForeachPlayer(ForeachPlayerDelegate a)
 {
     for (int i = 0; i < Players.Count; i++) {
         if (Players.Count > i)
             a.Invoke(Players[i]);
     }
 }