diff options
Diffstat (limited to 'tiledef.go')
-rw-r--r-- | tiledef.go | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tiledef.go b/tiledef.go new file mode 100644 index 0000000..9a5714d --- /dev/null +++ b/tiledef.go @@ -0,0 +1,40 @@ +package mt + +type AlignType uint8 + +const ( + NoAlign AlignType = iota + WorldAlign + UserAlign +) + +type TileFlags uint16 + +const ( + TileBackfaceCull TileFlags = 1 << iota + TileAbleH + TileAbleV + TileColor + TileScale + TileAlign +) + +type TileDef struct { + //mt:const uint8(6) + + Texture + Anim TileAnim + Flags TileFlags + + //mt:if %s.Flags&TileColor != 0 + R, G, B uint8 + //mt:end + + //mt:if %s.Flags&TileScale != 0 + Scale uint8 + //mt:end + + //mt:if %s.Flags&TileAlign != 0 + Align AlignType + //mt:end +} |