]> git.lizzy.rs Git - mt.git/blob - itemtype_string.go
Add WaitGroup to SerializePkt
[mt.git] / itemtype_string.go
1 // Code generated by "stringer -type ItemType"; 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[NodeItem-1]
12         _ = x[CraftItem-2]
13         _ = x[ToolItem-3]
14 }
15
16 const _ItemType_name = "NodeItemCraftItemToolItem"
17
18 var _ItemType_index = [...]uint8{0, 8, 17, 25}
19
20 func (i ItemType) String() string {
21         i -= 1
22         if i >= ItemType(len(_ItemType_index)-1) {
23                 return "ItemType(" + strconv.FormatInt(int64(i+1), 10) + ")"
24         }
25         return _ItemType_name[_ItemType_index[i]:_ItemType_index[i+1]]
26 }