/// <summary> /// A cityserver logged in! /// </summary> public static void HandleCityServerLogin(PacketStream P, ref CityServerClient Client) { byte PacketLength = (byte)P.ReadByte(); string Name = P.ReadString(); string Description = P.ReadString(); ulong Thumbnail = P.ReadUInt64(); string IP = P.ReadString(); int Port = P.ReadInt32(); CityServerInfo Info = new CityServerInfo(Name, Description, Thumbnail, IP, Port); Client.ServerInfo = Info; }
/// <summary> /// A cityserver logged in! /// </summary> public static void HandleCityServerLogin(PacketStream P, ref CityServerClient Client) { byte PacketLength = (byte)P.ReadByte(); Logger.LogDebug("CityServer logged in!"); string Name = P.ReadString(); string Description = P.ReadString(); ulong Thumbnail = P.ReadUInt64(); Guid GUID = new Guid(); string UUID = GUID.ToString(); ulong Map = P.ReadUInt64(); string IP = P.ReadString(); int Port = P.ReadInt32(); CityInfo Info = new CityInfo(Name, Description, Thumbnail, UUID, Map, IP, Port); Client.ServerInfo = Info; }
/// <summary> /// A cityserver logged in! /// </summary> public static void HandleCityServerLogin(PacketStream P, ref CityServerClient Client) { byte PacketLength = (byte)P.ReadByte(); Logger.LogDebug("CityServer logged in!"); string Name = P.ReadString(); string Description = P.ReadString(); ulong Thumbnail = P.ReadUInt64(); Guid GUID = new Guid(); string UUID = GUID.ToString(); ulong Map = P.ReadUInt64(); string IP = P.ReadString(); int Port = P.ReadInt32(); CityInfo Info = new CityInfo(Name, Description, Thumbnail, UUID, Map, IP, Port); Client.ServerInfo = Info; }