3 #include "block_def.hpp"
6 using namespace dragonblocks;
8 BlockDef::BlockDef(const string &n, const vector<Texture> &t) : name(n), tiles(t)
14 for (int i = 0; s < 6; i += s) {
15 for (int j = 0; j < i && j + i < 6; j++) {
16 tiles[i + j] = tiles[j];
22 BlockDef::BlockDef(const string &n, const Texture &t) : BlockDef(n, {t, t, t, t, t, t})
26 BlockDef::BlockDef(const string &n) : BlockDef(n, vector<Texture>())