aboutsummaryrefslogtreecommitdiff
path: root/Canvas.cpp
diff options
context:
space:
mode:
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;