Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Elmo loves cookies on May 15, 2016, 04:59:35 AM

Title: Tnet 3.0 Need Network Lobby
Post by: Elmo loves cookies on May 15, 2016, 04:59:35 AM
how to get list of channels? (roomList)


Title: Re: Tnet 3.0 Need Network Lobby
Post by: ArenMook on May 15, 2016, 07:26:59 AM
TNet comes with a LAN server discovery example. Once you connect to the server you can use
  1. TNManager.GetChannelList(delegate (List<Channel.Info> list)
  2. {
  3.     foreach (var channel in list)
  4.     {
  5.         // Do whatever you need to do with the data
  6.         Debug.Log(channel.id + ": " + channel.players + ", " + channel.level);
  7.     }
  8. });