From 152b6697e62c81773646f145c1133c6807d1c007 Mon Sep 17 00:00:00 2001 From: anon5 Date: Wed, 23 Jun 2021 15:52:43 +0000 Subject: Remove incomplete JSON (de)serialization for ToolCaps --- toolcaps.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'toolcaps.go') 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 -- cgit v1.2.3