From a72f4331a052c3e01ee27fc2cb96c9c12fed1651 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 20 Jan 2023 11:14:43 +0100 Subject: reformat using gofmtp --- go/client/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/client/main.go') diff --git a/go/client/main.go b/go/client/main.go index ec8fff5e..13a07d0b 100644 --- a/go/client/main.go +++ b/go/client/main.go @@ -26,8 +26,7 @@ const ( HOVER_THRESHOLD = 60 ) -type HandLayer struct { -} +type HandLayer struct{} func (l *HandLayer) Draw(screen *ebiten.Image) { cardImg := assets.GetCard("base/archer", "en") @@ -56,6 +55,7 @@ func (h *hoverDetector) update(x, y int) { h.reset() } } + func (h *hoverDetector) reset() { h.ticks = 0 if h.resetFunc != nil { -- cgit v1.2.3