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
TNManager
.
GetChannelList
(
delegate
(
List
<
Channel
.
Info
>
list
)
{
foreach
(
var
channel
in
list
)
{
// Do whatever you need to do with the data
Debug
.
Log
(
channel
.
id
+
": "
+
channel
.
players
+
", "
+
channel
.
level
)
;
}
}
)
;