PDA

View Full Version : [Solved] any reason to use JoinRoomRequest?



chengen
05-16-2011, 08:23 PM
It seems CreateRoomRequest does what JoinRoomRequest does when room is already created. Is there any reason to use JoinRoomRequest at all?

tcarr
05-16-2011, 08:28 PM
JoinRoomRequest is only needed if there is a specific roomId that you want to join, and you don't want to create a room if the room isn't there already. Typically it's used when a user is invited to join a room, because the only info needed in the invitation is the roomId and zoneId, and the password if there is one. Another use case is if the user is in a lobby that displays a list of all the current active rooms, so that the user can select a room to join (or perhaps click a button to create a new room).