]> git.lizzy.rs Git - mt.git/blob - alphause_string.go
Add WaitGroup to SerializePkt
[mt.git] / alphause_string.go
1 // Code generated by "stringer -type AlphaUse"; 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[Blend-0]
12         _ = x[Mask-1]
13         _ = x[Opaque-2]
14         _ = x[Legacy-3]
15 }
16
17 const _AlphaUse_name = "BlendMaskOpaqueLegacy"
18
19 var _AlphaUse_index = [...]uint8{0, 5, 9, 15, 21}
20
21 func (i AlphaUse) String() string {
22         if i >= AlphaUse(len(_AlphaUse_index)-1) {
23                 return "AlphaUse(" + strconv.FormatInt(int64(i), 10) + ")"
24         }
25         return _AlphaUse_name[_AlphaUse_index[i]:_AlphaUse_index[i+1]]
26 }