Simple issue: Join/Create Rooms
Posted: 22 Jan 2008, 11:57
This is probably real simple but I can't find a related topic about it on the search.
Here is the deal:
User enters in the lobby. If he is in a Clan, join a clan room. Clan Room does not exist? create Clan Room.
I first thought the best way would probably be around onJoinRoomError or onCreateRoomError (as the order on create/join doesn't make a difference since it will all end up the same way), BUT onJoinRoomError and onCreateRoomError do not have any useful parameters I can use since the only thing it fires is the error string message.
I'm pretty sure this issue has been address before and I'm positive I'm missing something since this is a very common thing to deal with multiplayer engines. The basic question is probably: is there a way to make "If room do not exist, create it. If it does, join it".
Here is the deal:
User enters in the lobby. If he is in a Clan, join a clan room. Clan Room does not exist? create Clan Room.
I first thought the best way would probably be around onJoinRoomError or onCreateRoomError (as the order on create/join doesn't make a difference since it will all end up the same way), BUT onJoinRoomError and onCreateRoomError do not have any useful parameters I can use since the only thing it fires is the error string message.
I'm pretty sure this issue has been address before and I'm positive I'm missing something since this is a very common thing to deal with multiplayer engines. The basic question is probably: is there a way to make "If room do not exist, create it. If it does, join it".