summaryrefslogtreecommitdiff
path: root/tileflags_string.go
blob: f442303728de4a278187ccae853a73c36c5ce5c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Code generated by "stringer -type TileFlags"; 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[TileBackfaceCull-1]
	_ = x[TileAbleH-2]
	_ = x[TileAbleV-4]
	_ = x[TileColor-8]
	_ = x[TileScale-16]
	_ = x[TileAlign-32]
}

const (
	_TileFlags_name_0 = "TileBackfaceCullTileAbleH"
	_TileFlags_name_1 = "TileAbleV"
	_TileFlags_name_2 = "TileColor"
	_TileFlags_name_3 = "TileScale"
	_TileFlags_name_4 = "TileAlign"
)

var (
	_TileFlags_index_0 = [...]uint8{0, 16, 25}
)

func (i TileFlags) String() string {
	switch {
	case 1 <= i && i <= 2:
		i -= 1
		return _TileFlags_name_0[_TileFlags_index_0[i]:_TileFlags_index_0[i+1]]
	case i == 4:
		return _TileFlags_name_1
	case i == 8:
		return _TileFlags_name_2
	case i == 16:
		return _TileFlags_name_3
	case i == 32:
		return _TileFlags_name_4
	default:
		return "TileFlags(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}