]> git.lizzy.rs Git - mt.git/blob - chatmsgtype_string.go
Add WaitGroup to SerializePkt
[mt.git] / chatmsgtype_string.go
1 // Code generated by "stringer -linecomment -type ChatMsgType"; 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[RawMsg-0]
12         _ = x[NormalMsg-1]
13         _ = x[AnnounceMsg-2]
14         _ = x[SysMsg-3]
15         _ = x[maxMsg-4]
16 }
17
18 const _ChatMsgType_name = "rawnormalannouncesysmaxMsg"
19
20 var _ChatMsgType_index = [...]uint8{0, 3, 9, 17, 20, 26}
21
22 func (i ChatMsgType) String() string {
23         if i >= ChatMsgType(len(_ChatMsgType_index)-1) {
24                 return "ChatMsgType(" + strconv.FormatInt(int64(i), 10) + ")"
25         }
26         return _ChatMsgType_name[_ChatMsgType_index[i]:_ChatMsgType_index[i+1]]
27 }