Example #1
0
 protected override void OnBeforeWrite(Network.Client client, Server.Core.Stream.ByteBuffer buffer)
 {
     buffer.WriteVarint(ID);
     buffer.WriteInt(Id);
     buffer.WriteFixedPointByte(DX);
     buffer.WriteFixedPointByte(DY);
     buffer.WriteFixedPointByte(DZ);
     buffer.WriteByteAngle(Yaw);
     buffer.WriteByteAngle(Pitch);
 }
Example #2
0
 protected override void OnBeforeWrite(Network.Client client, Server.Core.Stream.ByteBuffer buffer)
 {
     buffer.WriteVarint(ID);
     buffer.WriteInt(Id);
     //buffer.WriteByte(Convert.ToByte(DX));
     //buffer.WriteByte(Convert.ToByte(DY));
     //buffer.WriteByte(Convert.ToByte(DZ));
     //buffer.WriteByte(0);
     //buffer.WriteByte(0);
     buffer.WriteFixedPointByte(DX);
     buffer.WriteFixedPointByte(DY);
     buffer.WriteFixedPointByte(DZ);
 }