]> git.lizzy.rs Git - mt.git/blob - dir_string.go
Add WaitGroup to SerializePkt
[mt.git] / dir_string.go
1 // Code generated by "stringer -type Dir"; DO NOT EDIT.
2
3 package mt
4
5 import "strconv"
6
7 func _() {
8         // An "invalid array index" compiler error signifies that the constant values have changed.
9         // Re-run the stringer command to generate them again.
10         var x [1]struct{}
11         _ = x[East-0]
12         _ = x[Above-1]
13         _ = x[North-2]
14         _ = x[South-3]
15         _ = x[Below-4]
16         _ = x[West-5]
17         _ = x[NoDir-6]
18 }
19
20 const _Dir_name = "EastAboveNorthSouthBelowWestNoDir"
21
22 var _Dir_index = [...]uint8{0, 4, 9, 14, 19, 24, 28, 33}
23
24 func (i Dir) String() string {
25         if i >= Dir(len(_Dir_index)-1) {
26                 return "Dir(" + strconv.FormatInt(int64(i), 10) + ")"
27         }
28         return _Dir_name[_Dir_index[i]:_Dir_index[i+1]]
29 }