diff options
Diffstat (limited to 'tileanim.go')
-rw-r--r-- | tileanim.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tileanim.go b/tileanim.go index bc6d6dd..8d664df 100644 --- a/tileanim.go +++ b/tileanim.go @@ -3,17 +3,19 @@ package mt type AnimType uint8 const ( - NoAnim AnimType = iota - VerticalFrameAnim - SpritesheetAnim + NoAnim AnimType = iota // none + VerticalFrameAnim // vertical frame + SpriteSheetAnim // sprite sheet maxAnim ) +//go:generate stringer -linecomment -type AnimType + type TileAnim struct { Type AnimType //mt:assert %s.Type < maxAnim - //mt:if %s.Type == SpritesheetAnim + //mt:if %s.Type == SpriteSheetAnim AspectRatio [2]uint8 //mt:end |