]> git.lizzy.rs Git - mt.git/blob - interaction_string.go
Add WaitGroup to SerializePkt
[mt.git] / interaction_string.go
1 // Code generated by "stringer -type Interaction"; 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[Dig-0]
12         _ = x[StopDigging-1]
13         _ = x[Dug-2]
14         _ = x[Place-3]
15         _ = x[Use-4]
16         _ = x[Activate-5]
17 }
18
19 const _Interaction_name = "DigStopDiggingDugPlaceUseActivate"
20
21 var _Interaction_index = [...]uint8{0, 3, 14, 17, 22, 25, 33}
22
23 func (i Interaction) String() string {
24         if i >= Interaction(len(_Interaction_index)-1) {
25                 return "Interaction(" + strconv.FormatInt(int64(i), 10) + ")"
26         }
27         return _Interaction_name[_Interaction_index[i]:_Interaction_index[i+1]]
28 }