From f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 Mon Sep 17 00:00:00 2001 From: anon5 Date: Tue, 22 Jun 2021 16:30:50 +0000 Subject: Add String methods to some types using stringer and fix some minor defects --- tosrvcmds.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tosrvcmds.go') 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 { -- cgit v1.2.3