Ejemplo n.º 1
0
 public static PlayerPosition Deserialize(ref SpanReader br)
 {
     return(new PlayerPosition
     {
         X = br.ReadAsDouble(),
         FeetY = br.ReadAsDouble(),
         Z = br.ReadAsDouble(),
         OnGround = br.ReadAsBoolean()
     });
 }
Ejemplo n.º 2
0
 public static ServerboundPositionAndLook Deserialize(ref SpanReader br)
 {
     return(new ServerboundPositionAndLook
     {
         X = br.ReadAsDouble(),
         FeetY = br.ReadAsDouble(),
         Z = br.ReadAsDouble(),
         Yaw = br.ReadAsFloat(),
         Pitch = br.ReadAsFloat(),
         OnGround = br.ReadAsBoolean()
     });
 }