summaryrefslogtreecommitdiff
path: root/nodebox.go
diff options
context:
space:
mode:
authoranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
committeranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
commitf967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch)
tree22d628df079bb5cac93cc2338cfbe585ff8a2763 /nodebox.go
parent425da65ed46061303604610bb539d6495b2b1f3f (diff)
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'nodebox.go')
-rw-r--r--nodebox.go12
1 files changed, 7 insertions, 5 deletions
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