diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-22 16:30:50 +0000 |
commit | f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch) | |
tree | 22d628df079bb5cac93cc2338cfbe585ff8a2763 /nodedef.go | |
parent | 425da65ed46061303604610bb539d6495b2b1f3f (diff) | |
download | mt-f967a747e4ae01fba3a6c3fd693d0e753faf3ae4.tar.xz |
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'nodedef.go')
-rw-r--r-- | nodedef.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -9,6 +9,8 @@ const ( P1Light ) +//go:generate stringer -trimprefix P1 -type Param1Type + type Param2Type uint8 const ( @@ -26,6 +28,8 @@ const ( P2GlassLikeLevel ) +//go:generate stringer -trimprefix P2 -type Param2Type + // A DrawType specifies how a node is drawn. type DrawType uint8 @@ -50,6 +54,8 @@ const ( DrawRootedPlant ) +//go:generate stringer -trimprefix Draw -type DrawType + type WaveType uint8 const ( @@ -59,6 +65,8 @@ const ( LiquidWaving // Wave up and down. ) +//go:generate stringer -type WaveType + type LiquidType uint8 const ( @@ -67,6 +75,8 @@ const ( LiquidSrc ) +//go:generate stringer -type LiquidType + // AlphaUse specifies how the alpha channel of a texture is used. type AlphaUse uint8 @@ -77,6 +87,8 @@ const ( Legacy ) +//go:generate stringer -type AlphaUse + type NodeDef struct { Param0 Content |