diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
commit | f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch) | |
tree | 22d628df079bb5cac93cc2338cfbe585ff8a2763 /ao.go | |
parent | 425da65ed46061303604610bb539d6495b2b1f3f (diff) |
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'ao.go')
-rw-r--r-- | ao.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43,7 +43,7 @@ type AOProps struct { Visual string VisualSize [3]float32 Textures []Texture - SpritesheetSize [2]int16 // in sprites. + SpriteSheetSize [2]int16 // in sprites. SpritePos [2]int16 // in sprite sheet. Visible bool MakeFootstepSnds bool @@ -167,12 +167,12 @@ type AOCmdAnimSpeed struct { Speed float32 } -//go:generate ./cmdno.sh aocmds AOCmd ao uint8 AOMsg newAOMsg - type AOMsg interface { aoCmdNo() uint8 } +//go:generate ./cmdno.sh aocmds AOCmd ao uint8 AOMsg newAOMsg + func writeAOMsg(w io.Writer, msg AOMsg) error { if _, err := w.Write([]byte{msg.aoCmdNo()}); err != nil { return err |