Ejemplo n.º 1
0
 public override void Read(PacketReader stream)
 {
     User = stream.ReadInt();
     Target = stream.ReadInt();
     LeftClick = stream.ReadBool();
 }
Ejemplo n.º 2
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Slot = stream.ReadShort();
     RightClick = stream.ReadBool();
     Transaction = stream.ReadShort();
     Shift = stream.ReadBool();
     Item = ItemStack.Read(stream);
 }
Ejemplo n.º 3
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Unknown = stream.ReadBool();
     X = stream.ReadDoublePacked();
     Y = stream.ReadDoublePacked();
     Z = stream.ReadDoublePacked();
 }
Ejemplo n.º 4
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Transaction = stream.ReadShort();
     Accepted = stream.ReadBool();
 }
Ejemplo n.º 5
0
        public override void Read(PacketReader stream)
        {
            //X,Y,Stance are in different order for Client->Server vs. Server->Client
            if (Packet.Role == StreamRole.Server)
            {
                X = stream.ReadDouble();
                Stance = stream.ReadDouble();
                Y = stream.ReadDouble();

            }
            else
            {
                X = stream.ReadDouble();
                Y = stream.ReadDouble();
                Stance = stream.ReadDouble();
            }
            Z = stream.ReadDouble();
            Console.WriteLine("Receiving Position: {0},{1},{2}", X, Y, Z);
            Yaw = stream.ReadFloat();
            Pitch = stream.ReadFloat();
            OnGround = stream.ReadBool();
        }
Ejemplo n.º 6
0
 public override void Read(PacketReader stream)
 {
     Yaw = stream.ReadFloat();
     Pitch = stream.ReadFloat();
     OnGround = stream.ReadBool();
 }
Ejemplo n.º 7
0
 public override void Read(PacketReader stream)
 {
     OnGround = stream.ReadBool();
 }
Ejemplo n.º 8
0
 public override void Read(PacketReader stream)
 {
     X = stream.ReadDouble();
     Y = stream.ReadDouble();
     Stance = stream.ReadDouble();
     Z = stream.ReadDouble();
     OnGround = stream.ReadBool();
 }
Ejemplo n.º 9
0
 public override void Read(PacketReader stream)
 {
     PlayerName = stream.ReadString16(16);
     Online = stream.ReadBool();
     Ping = stream.ReadShort();
 }
Ejemplo n.º 10
0
 public override void Read(PacketReader reader)
 {
     Invulnerability = reader.ReadBool();
     IsFlying = reader.ReadBool();
     CanFly = reader.ReadBool();
     InstantDestroy = reader.ReadBool();
 }
Ejemplo n.º 11
0
 public override void Read(PacketReader stream)
 {
     X = stream.ReadInt();
     Z = stream.ReadInt();
     Load = stream.ReadBool();
 }
Ejemplo n.º 12
0
 public override void Read(PacketReader stream)
 {
     //X,Y,Stance are in different order for Client->Server vs. Server->Client
     if (Packet.Role == StreamRole.Server)
     {
         X = stream.ReadDouble();
         Stance = stream.ReadDouble();
         Y = stream.ReadDouble();
     }
     else
     {
         X = stream.ReadDouble();
         Y = stream.ReadDouble();
         Stance = stream.ReadDouble();
     }
     Z = stream.ReadDouble();
     Yaw = stream.ReadFloat();
     Pitch = stream.ReadFloat();
     OnGround = stream.ReadBool();
 }
Ejemplo n.º 13
0
 public override void Read(PacketReader stream)
 {
     Sink1 = stream.ReadFloat();
     Sink2 = stream.ReadFloat();
     Sink3 = stream.ReadFloat();
     Sink4 = stream.ReadFloat();
     Sink5 = stream.ReadBool();
     Sink6 = stream.ReadBool();
 }