summaryrefslogtreecommitdiff
path: root/tosrvcmds.go
diff options
context:
space:
mode:
authoranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
committeranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
commitf967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch)
tree22d628df079bb5cac93cc2338cfbe585ff8a2763 /tosrvcmds.go
parent425da65ed46061303604610bb539d6495b2b1f3f (diff)
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'tosrvcmds.go')
-rw-r--r--tosrvcmds.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/tosrvcmds.go b/tosrvcmds.go
index 4f60600..4915204 100644
--- a/tosrvcmds.go
+++ b/tosrvcmds.go
@@ -1,5 +1,3 @@
-//go:generate ./cmdno.sh tosrvcmds ToSrv toSrv uint16 Cmd newToSrvCmd
-
package mt
type ToSrvCmd interface {
@@ -7,6 +5,8 @@ type ToSrvCmd interface {
toSrvCmdNo() uint16
}
+//go:generate ./cmdno.sh tosrvcmds ToSrv toSrv uint16 Cmd newToSrvCmd
+
// ToSrvNil is the first packet sent in a connection.
type ToSrvNil struct{}
@@ -109,6 +109,8 @@ const (
Activate // Right click air.
)
+//go:generate stringer -type Interaction
+
// ToSrvRemovedSounds tells the server that the client has finished playing
// the sounds with the given IDs.
type ToSrvRemovedSounds struct {