New design on LEL that's way more sane and allows for more flexible columns and rows.
This commit is contained in:
parent
f884b83809
commit
79c84ce885
8 changed files with 83 additions and 78 deletions
5
lel.hpp
5
lel.hpp
|
@ -5,6 +5,8 @@
|
|||
#include <optional>
|
||||
|
||||
namespace lel {
|
||||
using Row = std::vector<std::string>;
|
||||
|
||||
struct Cell {
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
@ -30,9 +32,8 @@ namespace lel {
|
|||
int grid_y = 0;
|
||||
int grid_w = 0;
|
||||
int grid_h = 0;
|
||||
int rows = 0;
|
||||
int columns = 0;
|
||||
Cell cur;
|
||||
std::vector<Row> grid;
|
||||
std::unordered_map<std::string, Cell> cells;
|
||||
|
||||
Parser(int x, int y, int width, int height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue