public override void Read(PacketReader stream) { Health = stream.ReadShort(); Food = stream.ReadShort(); FoodSaturation = stream.ReadFloat(); }
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(); }
public override void Read(PacketReader stream) { Yaw = stream.ReadFloat(); Pitch = stream.ReadFloat(); OnGround = stream.ReadBool(); }
public override void Read(PacketReader stream) { SoundName = stream.ReadString16(20); EffectX = stream.ReadInt(); EffectY = stream.ReadInt(); EffectZ = stream.ReadInt(); Volume = stream.ReadFloat(); Pitch = stream.ReadByte(); }
public override void Read(PacketReader stream) { X = stream.ReadDouble(); Y = stream.ReadDouble(); Z = stream.ReadDouble(); Radius = stream.ReadFloat(); Offsets = new sbyte[stream.ReadInt(), 3]; for (int i = 0; i < Offsets.GetLength(0); i++) { Offsets[i, 0] = stream.ReadSByte(); Offsets[i, 1] = stream.ReadSByte(); Offsets[i, 2] = stream.ReadSByte(); } UnknownA = stream.ReadFloat(); UnknownB = stream.ReadFloat(); UnknownC = stream.ReadFloat(); }
public override void Read(PacketReader reader) { Experience = reader.ReadFloat(); Level = reader.ReadShort(); TotExperience = reader.ReadShort(); }
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(); }
public override void Read(PacketReader stream) { Sink1 = stream.ReadFloat(); Sink2 = stream.ReadFloat(); Sink3 = stream.ReadFloat(); Sink4 = stream.ReadFloat(); Sink5 = stream.ReadBool(); Sink6 = stream.ReadBool(); }