]> git.lizzy.rs Git - mt.git/blob - hudstyleflags_string.go
Add WaitGroup to SerializePkt
[mt.git] / hudstyleflags_string.go
1 // Code generated by "stringer -trimprefix Style -type HUDStyleFlags"; 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[StyleBold-1]
12         _ = x[StyleItalic-2]
13         _ = x[StyleMono-4]
14 }
15
16 const (
17         _HUDStyleFlags_name_0 = "BoldItalic"
18         _HUDStyleFlags_name_1 = "Mono"
19 )
20
21 var (
22         _HUDStyleFlags_index_0 = [...]uint8{0, 4, 10}
23 )
24
25 func (i HUDStyleFlags) String() string {
26         switch {
27         case 1 <= i && i <= 2:
28                 i -= 1
29                 return _HUDStyleFlags_name_0[_HUDStyleFlags_index_0[i]:_HUDStyleFlags_index_0[i+1]]
30         case i == 4:
31                 return _HUDStyleFlags_name_1
32         default:
33                 return "HUDStyleFlags(" + strconv.FormatInt(int64(i), 10) + ")"
34         }
35 }