Ejemplo n.º 1
0
 public static Ping Deserialize(ref SpanReader br)
 {
     return(new Ping
     {
         Payload = br.ReadAsLong(),
     });
 }
Ejemplo n.º 2
0
 public static ServerboundKeepAlive Deserialize(ref SpanReader br)
 {
     return(new ServerboundKeepAlive
     {
         KeepAliveId = br.ReadAsLong()
     });
 }
Ejemplo n.º 3
0
 public static Respawn Deserialize(ref SpanReader br)
 {
     return(new Respawn
     {
         Dimension = br.ReadAsInt(),
         HashedSeed = br.ReadAsLong(),
         Gamemode = br.ReadAsByte(),
         LevelType = br.ReadAsString()
     });
 }