From 108a6216a987edaa68c8739468069f4e1fc6f60c Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 13 Oct 2024 15:21:23 +0200 Subject: more WIP --- Canvas.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Canvas.cpp') 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; -- cgit v1.2.3