コード例 #1
0
func NewRequestServerList(request []byte) RequestServerList {
	var packet = packets.NewReader(request)
	var result RequestServerList

	result.SessionID = packet.ReadBytes(8)

	return result
}
コード例 #2
0
func NewProtocolVersion(request []byte) ProtocolVersion {
	var packet = packets.NewReader(request)
	var p ProtocolVersion

	p.Version = packet.ReadUInt32()

	return p
}
コード例 #3
0
func NewRequestPlay(request []byte) RequestPlay {
	var packet = packets.NewReader(request)
	var result RequestPlay

	result.SessionID = packet.ReadBytes(8)
	result.ServerID = packet.ReadUInt8()

	return result
}