6 NoAnim AnimType = iota // none
7 VerticalFrameAnim // vertical frame
8 SpriteSheetAnim // sprite sheet
12 //go:generate stringer -linecomment -type AnimType
14 type TileAnim struct {
16 //mt:assert %s.Type < maxAnim
18 //mt:if %s.Type == SpriteSheetAnim
22 //mt:if %s.Type == VerticalFrameAnim
26 //mt:if %s.Type != NoAnim
27 Duration float32 // in seconds