]> git.lizzy.rs Git - mt.git/blob - soundsrctype_string.go
Add WaitGroup to SerializePkt
[mt.git] / soundsrctype_string.go
1 // Code generated by "stringer -linecomment -type SoundSrcType"; 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[NoSrc-0]
12         _ = x[PosSrc-1]
13         _ = x[AOSrc-2]
14 }
15
16 const _SoundSrcType_name = "nowhereposao"
17
18 var _SoundSrcType_index = [...]uint8{0, 7, 10, 12}
19
20 func (i SoundSrcType) String() string {
21         if i >= SoundSrcType(len(_SoundSrcType_index)-1) {
22                 return "SoundSrcType(" + strconv.FormatInt(int64(i), 10) + ")"
23         }
24         return _SoundSrcType_name[_SoundSrcType_index[i]:_SoundSrcType_index[i+1]]
25 }