GetRoomList problem :S

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Soshius
Posts: 2
Joined: 17 Dec 2014, 15:03

GetRoomList problem :S

Postby Soshius » 17 Dec 2014, 19:00

Hi,

I'm quite new to SmartFox / Unity so it's maybe a stupid issue but can't find what i'm missing...

when i do that :

Code: Select all

private void GetServerList() {
      Debug.Log ("GetServerList from : " + smartFox.CurrentZone);

      serverRooms = smartFox.RoomManager.GetRoomList();
      Debug.Log (serverRooms);
      foreach (Room room in serverRooms) {
         Debug.Log(room.Name);
      }

   }


In the logs i only get this :

Code: Select all

GetServerList from : MMO_TEST_ZONE
System.Collections.Generic.List`1[Sfs2X.Entities.Room]


i can't find what i'm missing it might be a listener or something else... i checked with the Lobby exemple but can't find where is my problem :/
Soshius
Posts: 2
Joined: 17 Dec 2014, 15:03

Re: GetRoomList problem :S

Postby Soshius » 17 Dec 2014, 22:25

Problem Resolved ...

In the Zone Configurator i had not filled the Public/Default Group fields :)
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: GetRoomList problem :S

Postby Lapo » 18 Dec 2014, 15:38

Good :)
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 67 guests