func NewRequestServerList(request []byte) RequestServerList { var packet = packets.NewReader(request) var result RequestServerList result.SessionID = packet.ReadBytes(8) return result }
func NewProtocolVersion(request []byte) ProtocolVersion { var packet = packets.NewReader(request) var p ProtocolVersion p.Version = packet.ReadUInt32() return p }
func NewRequestPlay(request []byte) RequestPlay { var packet = packets.NewReader(request) var result RequestPlay result.SessionID = packet.ReadBytes(8) result.ServerID = packet.ReadUInt8() return result }