summaryrefslogtreecommitdiff
path: root/animtype_string.go
diff options
context:
space:
mode:
authoranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
committeranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
commitf967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch)
tree22d628df079bb5cac93cc2338cfbe585ff8a2763 /animtype_string.go
parent425da65ed46061303604610bb539d6495b2b1f3f (diff)
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'animtype_string.go')
-rw-r--r--animtype_string.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/animtype_string.go b/animtype_string.go
new file mode 100644
index 0000000..3c78525
--- /dev/null
+++ b/animtype_string.go
@@ -0,0 +1,26 @@
+// Code generated by "stringer -linecomment -type AnimType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NoAnim-0]
+ _ = x[VerticalFrameAnim-1]
+ _ = x[SpriteSheetAnim-2]
+ _ = x[maxAnim-3]
+}
+
+const _AnimType_name = "nonevertical framesprite sheetmaxAnim"
+
+var _AnimType_index = [...]uint8{0, 4, 18, 30, 37}
+
+func (i AnimType) String() string {
+ if i >= AnimType(len(_AnimType_index)-1) {
+ return "AnimType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _AnimType_name[_AnimType_index[i]:_AnimType_index[i+1]]
+}