Get the list of rooms in the current zone.
Unlike the GetRoomList()()() method, this method returns the list of Room objects already stored on the client, so no request is sent to the server.
Unlike the GetRoomList()()() method, this method returns the list of Room objects already stored on the client, so no request is sent to the server.

C# | Visual Basic | Visual C++ |
public Dictionary<int, Room> GetAllRooms()
Public Function GetAllRooms As Dictionary(Of Integer, Room)
public: Dictionary<int, Room^>^ GetAllRooms()

The list of rooms available in the current zone.

Version:
SmartFoxServer Basic / Pro

The following example shows how to retrieve the room list.
CopyC#

Dictionary<int, Room> rooms = smartFox.GetAllRooms(); foreach (Room room in rooms.Values) { Debug.WriteLine("Room: " + room.GetName()); }
