reply handling
parent
a9355a82a9
commit
eedb04be56
|
@ -145,6 +145,10 @@ func EncodeJavaMessage(status int, cmdID int, dest int, playerUuid string, cmdNu
|
||||||
}
|
}
|
||||||
|
|
||||||
func DecodeWebMessage(data []byte) (Status int, CmdID int, Dest int, CmdNumber int, Args string) {
|
func DecodeWebMessage(data []byte) (Status int, CmdID int, Dest int, CmdNumber int, Args string) {
|
||||||
|
if data[0] == StatusReply {
|
||||||
|
return int(data[0]), 0, 0, 0, ""
|
||||||
|
}
|
||||||
|
|
||||||
status := data[0]
|
status := data[0]
|
||||||
cmdID := data[1]
|
cmdID := data[1]
|
||||||
dest := data[2]
|
dest := data[2]
|
||||||
|
|
Loading…
Reference in New Issue