In the example usage for GetRoomList:
SFSEvent.onRoomListUpdate += OnRoomListUpdate;
smartFox.GetRoomList()
public void OnRoomListUpdate(Hashtable roomList)
{
// Dump the names of the available rooms in the current zone
foreach (Room room in roomList)
Trace.WriteLine(room.GetName())
}
I get an error on the foreach line:
Unable to cast object of type 'System.Collections.DictionaryEntry' to type 'SmartFoxClientAPI.Data.Room'.
I am using version 1.0 final, any help with this would be much appreciated!
Error in GetRoomList example?
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Return to “.Net / Unity3D API”
Who is online
Users browsing this forum: No registered users and 46 guests