aboutsummaryrefslogtreecommitdiff
path: root/MuseumDeserializer.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 16:09:47 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 16:09:47 +0200
commit277157b3e06b2deeacbdbc8bf6190de19f88169d (patch)
treedb9c013b67f93d27fa5bb9cf84c7d6dc53f72734 /MuseumDeserializer.cpp
parent64028952ceb17f97ded08f1ab7ec0b06c41e2b87 (diff)
more refactoring / preparation for pathfinding
Diffstat (limited to 'MuseumDeserializer.cpp')
-rw-r--r--MuseumDeserializer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/MuseumDeserializer.cpp b/MuseumDeserializer.cpp
index fca8d50..19fc1a6 100644
--- a/MuseumDeserializer.cpp
+++ b/MuseumDeserializer.cpp
@@ -17,6 +17,7 @@ void MuseumDeserializer::set_tile(TileData data) {
void MuseumDeserializer::add_type(std::string type, Color color, unsigned int weight) {
if (type.length() == 0) return;
- TileColorFactory::register_color(type, color);
+ this->museum.canvas.tile_color.register_color(type, color);
+ // this->museum.pathfinding.weights.register_weight(type, weight);
}