diff options
author | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
commit | bcc58cb3048faa146ed0f90b330ebbe791d53b5c (patch) | |
tree | 2373852a0557ea584a62134159eb646b15619be3 /tosrvcmds.go | |
parent | d6ba88b091f6c9be3b48ab0fe3f94211ee210700 (diff) |
Switch to Minetest 5.4.1 protocol and other changes
Diffstat (limited to 'tosrvcmds.go')
-rw-r--r-- | tosrvcmds.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tosrvcmds.go b/tosrvcmds.go index de80b12..885f200 100644 --- a/tosrvcmds.go +++ b/tosrvcmds.go @@ -1,5 +1,7 @@ package mt +import "github.com/anon55555/mt/rudp" + type ToSrvCmd interface { Cmd toSrvCmdNo() uint16 @@ -35,12 +37,12 @@ type ToSrvJoinModChan struct { Channel string } -// ToSrvJoinModChan attempts to leave a mod channel. +// ToSrvLeaveModChan attempts to leave a mod channel. type ToSrvLeaveModChan struct { Channel string } -// ToSrvJoinModChan sends a message on a mod channel. +// ToSrvMsgModChan sends a message on a mod channel. type ToSrvMsgModChan struct { Channel string Msg string @@ -155,3 +157,9 @@ type ToSrvSRPBytesA struct { type ToSrvSRPBytesM struct { M []byte } + +type ToSrvDisco struct{} + +func (*ToSrvDisco) cmd() {} +func (*ToSrvDisco) toSrvCmdNo() uint16 { return 0xffff } +func (*ToSrvDisco) DefaultPktInfo() rudp.PktInfo { return rudp.PktInfo{} } |