]> git.lizzy.rs Git - dragonblocks3d.git/blobdiff - src/tile_def.hpp
New structure
[dragonblocks3d.git] / src / tile_def.hpp
diff --git a/src/tile_def.hpp b/src/tile_def.hpp
new file mode 100644 (file)
index 0000000..dd5c7e0
--- /dev/null
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <vector>
+#include "texture.hpp"
+
+namespace dragonblocks
+{
+       class TileDef
+       {
+               public:
+               std::vector<Texture> tiles;
+               
+               Texture get(int) const;
+               int size() const;
+               
+               TileDef() = default;
+               TileDef(const Texture &);
+               TileDef(const std::vector<Texture> &);
+       };
+}