void Start()
{
TNManager.client.packetHandlers[(byte)Packet.ResponseChannelList] = UpdateWorldData;
}
void RequestChannelData ()
{
TNManager.BeginSend(Packet.RequestChannelList);
TNManager.EndSend();
}
void UpdateWorldData (Packet response, BinaryReader reader, IPEndPoint source)
{
int count = reader.ReadInt32();
for (int i = 0; i < count; ++i)
{
int channelID = reader.ReadInt32();
ushort players = reader.ReadUInt16();
ushort limit = reader.ReadUInt16();
bool hasPass = reader.ReadBoolean();
bool persist = reader.ReadBoolean();
string level = reader.ReadString();
string data = reader.ReadString();
}
}