summaryrefslogtreecommitdiff
path: root/attractionkind_string.go
blob: 3fc27a2ac565ff5c2fe5f08dbce9ddda3c8274d8 (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
// Code generated by "stringer -linecomment -type AttractionKind"; 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[NoAttraction-0]
	_ = x[PointAttraction-1]
	_ = x[LineAttraction-2]
	_ = x[PlaneAttraction-3]
}

const _AttractionKind_name = "NonePointLinePlane"

var _AttractionKind_index = [...]uint8{0, 4, 9, 13, 18}

func (i AttractionKind) String() string {
	if i >= AttractionKind(len(_AttractionKind_index)-1) {
		return "AttractionKind(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _AttractionKind_name[_AttractionKind_index[i]:_AttractionKind_index[i+1]]
}