summaryrefslogtreecommitdiff
path: root/dir_string.go
blob: cd48e1b9a5546636f371a02a5dc8645d42b42357 (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
// Code generated by "stringer -type Dir"; 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[East-0]
	_ = x[Above-1]
	_ = x[North-2]
	_ = x[South-3]
	_ = x[Below-4]
	_ = x[West-5]
	_ = x[NoDir-6]
}

const _Dir_name = "EastAboveNorthSouthBelowWestNoDir"

var _Dir_index = [...]uint8{0, 4, 9, 14, 19, 24, 28, 33}

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