예제 #1
0
 public override Packet Read(byte[] data)
 {
     var ms = new MinecraftStream(data);
     var re = new LoginStart() { ID = ms.ReadVarInt() };
     var l = ms.ReadVarInt();
     re.Name = ms.ReadString(l);
     return  re;
 }
예제 #2
0
        public override Packet Read(byte[] data)
        {
            var ms = new MinecraftStream(data);
            var re = new LoginStart()
            {
                ID = ms.ReadVarInt()
            };
            var l = ms.ReadVarInt();

            re.Name = ms.ReadString(l);
            return(re);
        }