summaryrefslogtreecommitdiff
path: root/ao.go
diff options
context:
space:
mode:
Diffstat (limited to 'ao.go')
-rw-r--r--ao.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ao.go b/ao.go
index 40b9983..436cb62 100644
--- a/ao.go
+++ b/ao.go
@@ -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