aboutsummaryrefslogtreecommitdiff
path: root/Canvas.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 15:21:23 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 15:21:23 +0200
commit108a6216a987edaa68c8739468069f4e1fc6f60c (patch)
tree8f074e59a8a4a7a365f275373d86c693f60b612b /Canvas.cpp
parent165c1ae6e4a4eea35d7ea2f2a6518ff36cf0112f (diff)
more WIP
Diffstat (limited to 'Canvas.cpp')
-rw-r--r--Canvas.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Canvas.cpp b/Canvas.cpp
index c2c5362..723ebff 100644
--- a/Canvas.cpp
+++ b/Canvas.cpp
@@ -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;