forked from Tnze/go-mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rail_shape_string.go
32 lines (26 loc) · 1.12 KB
/
rail_shape_string.go
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
// Code generated by "stringer -type=RailShape -output=rail_shape_string.go"; DO NOT EDIT.
package properties
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[RailShapeNorthSouth-0]
_ = x[RailShapeEastWest-1]
_ = x[RailShapeAscendingEast-2]
_ = x[RailShapeAscendingWest-3]
_ = x[RailShapeAscendingNorth-4]
_ = x[RailShapeAscendingSouth-5]
_ = x[RailShapeSouthEast-6]
_ = x[RailShapeSouthWest-7]
_ = x[RailShapeNorthWest-8]
_ = x[RailShapeNorthEast-9]
}
const _RailShape_name = "RailShapeNorthSouthRailShapeEastWestRailShapeAscendingEastRailShapeAscendingWestRailShapeAscendingNorthRailShapeAscendingSouthRailShapeSouthEastRailShapeSouthWestRailShapeNorthWestRailShapeNorthEast"
var _RailShape_index = [...]uint8{0, 19, 36, 58, 80, 103, 126, 144, 162, 180, 198}
func (i RailShape) String() string {
if i >= RailShape(len(_RailShape_index)-1) {
return "RailShape(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _RailShape_name[_RailShape_index[i]:_RailShape_index[i+1]]
}