GetRoomList()

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

Moderators: Lapo, Bax

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

GetRoomList()

Post by Fishypants »

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.
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

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/docP ... ecture.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:

Post by Fishypants »

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