blob: cc213295b2b91796d5607960f3e73db7889bb989 (
plain) (
blame)
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
|
// Code generated by "stringer -linecomment -type ChatMsgType"; DO NOT EDIT.
package mt
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[RawMsg-0]
_ = x[NormalMsg-1]
_ = x[AnnounceMsg-2]
_ = x[SysMsg-3]
_ = x[maxMsg-4]
}
const _ChatMsgType_name = "rawnormalannouncesysmaxMsg"
var _ChatMsgType_index = [...]uint8{0, 3, 9, 17, 20, 26}
func (i ChatMsgType) String() string {
if i >= ChatMsgType(len(_ChatMsgType_index)-1) {
return "ChatMsgType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _ChatMsgType_name[_ChatMsgType_index[i]:_ChatMsgType_index[i+1]]
}
|