GetRoomList()

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

Fishypants
Posts: 57
Joined: 26 Oct 2010, 14:03
Location: South Pasadena California
Contact:

GetRoomList()

Postby Fishypants » 01 Mar 2011, 15:09

I am wondering if this needs to be called anytime we switch scenes or join different rooms, or only once upon login? Right now I have it only being called once upon login, but I don't see how that is good, especially if there are going to be dynamic rooms. Looking for some clarification on this, thanks!

P.S. - I am using a custom login, hence why I was calling it in the first place.
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 01 Mar 2011, 18:32

Yes, you need it upon login and again after exiting a game room. The reason for this is because users inside a game room wouldn't get notified about new or delete rooms.

See "Room types and their life cycle" section via http://www.smartfoxserver.com/docs/docPages/sfsPro/roomArchitecture.htm for more info.
Smartfox's forum is my daily newspaper.
Fishypants
Posts: 57
Joined: 26 Oct 2010, 14:03
Location: South Pasadena California
Contact:

Postby Fishypants » 01 Mar 2011, 18:58

Awesome, thanks BigFish. I think I owe you a beer for all the help you've been giving me :)

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 1 guest