blob: 7bf6c09afe9c100908cdc3f2261347dc330af8cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package mt
type ToolCaps struct {
//mt:if _ = %s; false
NonNil bool
//mt:end
//mt:lenhdr 16
//mt:ifde
//mt:if r.N > 0 { %s.NonNil = true}; /**/
//mt:if %s.NonNil
// Version.
//mt:const uint8(5)
AttackCooldown float32
MaxDropLvl int16
//mt:len32
GroupCaps []ToolGroupCaps
//mt:len32
DmgGroups []Group
AttackUses uint16
//mt:end
//mt:end
//mt:end
}
type ToolGroupCaps struct {
Name string
Uses int16
MaxLvl int16
//mt:len32
Times []DigTime
}
type DigTime struct {
Rating int16
Time float32
}
|