]> git.lizzy.rs Git - dragonblocks3d.git/blobdiff - src/dragonblocks/block_def.cpp
New structure
[dragonblocks3d.git] / src / dragonblocks / block_def.cpp
diff --git a/src/dragonblocks/block_def.cpp b/src/dragonblocks/block_def.cpp
deleted file mode 100644 (file)
index 2e200ee..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "block_def.hpp"
-
-using namespace std;
-using namespace dragonblocks;
-
-BlockDef::BlockDef(const string &n, const vector<Texture> &t) : name(n), tiles(t)
-{
-       int s = tiles.size();
-       if (s == 0) {
-               drawable = false;
-       } else {
-               for (int i = 0; s < 6; i += s) {
-                       for (int j = 0; j < i && j + i < 6; j++) {
-                               tiles[i + j] = tiles[j];
-                       }
-               }
-       }
-}
-
-BlockDef::BlockDef(const string &n, const Texture &t) : BlockDef(n, {t, t, t, t, t, t})
-{
-}
-
-BlockDef::BlockDef(const string &n) : BlockDef(n, vector<Texture>())
-{
-}