Exemplo n.º 1
0
 /// <summary>
 /// List all rooms in the lobby that match certain criteria.
 /// </summary>
 /// <param name="searchCriteria">search criteria</param>
 /// <param name="resultLimit">limit how many results to list (use 0 to list as many as possible)</param>
 /// <param name="resultOffset">the offset into the list</param>
 /// <returns>a list of all rooms in the lobby that match the criteria</returns>
 public WorldInfo[] ListRooms(Dictionary<string, string> searchCriteria, int resultLimit = 0, int resultOffset = 0)
 {
     RoomInfo[] ri = client.Multiplayer.ListRooms("Everybodyedits" + Version.ToString(), searchCriteria, 0, 0);
     WorldInfo[] wi = new WorldInfo[ri.Length];
     for (int n = 0; n < ri.Length; n++)
     {
         wi[n] = new WorldInfo(ri[n].Id, ri[n].OnlineUsers, ri[n].RoomType, ri[n].RoomData);
     }
     return wi;
 }