]> git.lizzy.rs Git - mt.git/blob - hotbarparam_string.go
Add WaitGroup to SerializePkt
[mt.git] / hotbarparam_string.go
1 // Code generated by "stringer -trimprefix Hotbar -type HotbarParam"; 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[HotbarSize-1]
12         _ = x[HotbarImg-2]
13         _ = x[HotbarSelImg-3]
14 }
15
16 const _HotbarParam_name = "SizeImgSelImg"
17
18 var _HotbarParam_index = [...]uint8{0, 4, 7, 13}
19
20 func (i HotbarParam) String() string {
21         i -= 1
22         if i >= HotbarParam(len(_HotbarParam_index)-1) {
23                 return "HotbarParam(" + strconv.FormatInt(int64(i+1), 10) + ")"
24         }
25         return _HotbarParam_name[_HotbarParam_index[i]:_HotbarParam_index[i+1]]
26 }