public RequestRoomList ( Action response ) : void | ||
response | Action | |
return | void |
public void RequestRoomList (Action<Dictionary<string, string>> response) {
On("roomListUpdated", OnUpdateRoomList);
roomListResult = response;
Emit<Response.RoomList> ("requestRoomList", (Response.RoomList res) => {
response(res.ToDictionary ());
});
}
public void RequestHostList(Action <List <string> > callback) { net.RequestRoomList((Dictionary <string, string> hosts) => { this.hosts = hosts; callback(new List <string> (hosts.Keys)); }); }