diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-23 15:52:43 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-23 15:52:43 +0000 |
commit | 152b6697e62c81773646f145c1133c6807d1c007 (patch) | |
tree | feb9036ea24a951765e6652ca67345d46ae5845f /toolcaps.go | |
parent | 88b1090d63a20ec368f3518298727a073e6a4112 (diff) | |
download | mt-152b6697e62c81773646f145c1133c6807d1c007.tar.xz |
Remove incomplete JSON (de)serialization for ToolCaps
Diffstat (limited to 'toolcaps.go')
-rw-r--r-- | toolcaps.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/toolcaps.go b/toolcaps.go index c414607..7bf6c09 100644 --- a/toolcaps.go +++ b/toolcaps.go @@ -2,7 +2,7 @@ package mt type ToolCaps struct { //mt:if _ = %s; false - NonNil bool `json:"-"` + NonNil bool //mt:end //mt:lenhdr 16 @@ -11,18 +11,19 @@ type ToolCaps struct { //mt:if r.N > 0 { %s.NonNil = true}; /**/ //mt:if %s.NonNil + // Version. //mt:const uint8(5) - AttackCooldown float32 `json:"full_punch_interval"` - MaxDropLvl int16 `json:"max_drop_level"` + AttackCooldown float32 + MaxDropLvl int16 //mt:len32 - GroupCaps []ToolGroupCaps `json:"groupcaps"` + GroupCaps []ToolGroupCaps //mt:len32 - DmgGroups []Group `json:"damage_groups"` + DmgGroups []Group - AttackUses uint16 `json:"punch_attack_uses"` + AttackUses uint16 //mt:end //mt:end |