diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-13 15:21:23 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-13 15:21:23 +0200 |
commit | 108a6216a987edaa68c8739468069f4e1fc6f60c (patch) | |
tree | 8f074e59a8a4a7a365f275373d86c693f60b612b /Canvas.cpp | |
parent | 165c1ae6e4a4eea35d7ea2f2a6518ff36cf0112f (diff) |
more WIP
Diffstat (limited to 'Canvas.cpp')
-rw-r--r-- | Canvas.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,7 +22,11 @@ size_t Canvas::pos_to_index(unsigned x, unsigned y) { return index; } -void Canvas::update() { +void Canvas::update(Museum & museum) { +} + +void Canvas::set_data(CanvasData data) { + this->data = data; this->tiles.resize(this->data.rows * this->data.columns); for (size_t i = 0; i < this->tiles.size(); i++) { if (this->tiles[i] != nullptr) continue; |