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