]> git.lizzy.rs Git - mt.git/blob - param2type_string.go
Make Tokens in ToSrvHaveMedia an array
[mt.git] / param2type_string.go
1 // Code generated by "stringer -trimprefix P2 -type Param2Type"; 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[P2Nibble-0]
12         _ = x[P2Byte-1]
13         _ = x[P2Flowing-2]
14         _ = x[P2FaceDir-3]
15         _ = x[P2Mounted-4]
16         _ = x[P2Leveled-5]
17         _ = x[P2Rotation-6]
18         _ = x[P2Mesh-7]
19         _ = x[P2Color-8]
20         _ = x[P2ColorFaceDir-9]
21         _ = x[P2ColorMounted-10]
22         _ = x[P2GlassLikeLevel-11]
23 }
24
25 const _Param2Type_name = "NibbleByteFlowingFaceDirMountedLeveledRotationMeshColorColorFaceDirColorMountedGlassLikeLevel"
26
27 var _Param2Type_index = [...]uint8{0, 6, 10, 17, 24, 31, 38, 46, 50, 55, 67, 79, 93}
28
29 func (i Param2Type) String() string {
30         if i >= Param2Type(len(_Param2Type_index)-1) {
31                 return "Param2Type(" + strconv.FormatInt(int64(i), 10) + ")"
32         }
33         return _Param2Type_name[_Param2Type_index[i]:_Param2Type_index[i+1]]
34 }