Exemple #1
0
        public static ReselectServer Deserialize(HazelBinaryReader reader)
        {
            var msg = new ReselectServer();

            var u1 = reader.ReadByte();

            msg.servers = reader.ReadMessageList((read, id) =>
            {
                var server     = new Server();
                server.name    = read.ReadString();
                server.ip      = read.ReadBytes(4);
                server.port    = read.ReadUInt16();
                server.unknown = read.ReadBytes(2);
                return(server);
            });

            return(msg);
        }