From f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 Mon Sep 17 00:00:00 2001 From: anon5 Date: Tue, 22 Jun 2021 16:30:50 +0000 Subject: Add String methods to some types using stringer and fix some minor defects --- nodebox.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'nodebox.go') diff --git a/nodebox.go b/nodebox.go index 46d704c..166961e 100644 --- a/nodebox.go +++ b/nodebox.go @@ -5,14 +5,16 @@ type Box [2]Vec type NodeBoxType uint8 const ( - CubeBox NodeBoxType = iota - FixedBox - MountedBox - LeveledBox - ConnectedBox + CubeBox NodeBoxType = iota // Cube + FixedBox // Fixed + MountedBox // Mounted + LeveledBox // Leveled + ConnectedBox // Connected maxBox ) +//go:generate stringer -linecomment -type NodeBoxType + type DirBoxes struct { Top, Bot []Box Front, Left, Back, Right []Box -- cgit v1.2.3