]> git.lizzy.rs Git - mt.git/blob - modchansig_string.go
Add WaitGroup to SerializePkt
[mt.git] / modchansig_string.go
1 // Code generated by "stringer -type ModChanSig"; 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[JoinOK-0]
12         _ = x[JoinFail-1]
13         _ = x[LeaveOK-2]
14         _ = x[LeaveFail-3]
15         _ = x[NotRegistered-4]
16         _ = x[SetState-5]
17 }
18
19 const _ModChanSig_name = "JoinOKJoinFailLeaveOKLeaveFailNotRegisteredSetState"
20
21 var _ModChanSig_index = [...]uint8{0, 6, 14, 21, 30, 43, 51}
22
23 func (i ModChanSig) String() string {
24         if i >= ModChanSig(len(_ModChanSig_index)-1) {
25                 return "ModChanSig(" + strconv.FormatInt(int64(i), 10) + ")"
26         }
27         return _ModChanSig_name[_ModChanSig_index[i]:_ModChanSig_index[i+1]]
28 }