aboutsummaryrefslogtreecommitdiff
path: root/MuseumDeserializer.cpp
blob: 19fc1a62aae9c3b9492d621b44f3b28fbff0544e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "MuseumDeserializer.h"
#include "TileColorFactory.h"

MuseumDeserializer::MuseumDeserializer(Museum & museum) : museum(museum) { }

void MuseumDeserializer::add_artist(ArtistData data) {
	this->museum.people.add_artist(data);
}

void MuseumDeserializer::set_canvas(CanvasData data) {
	this->museum.canvas.set_data(data);
}

void MuseumDeserializer::set_tile(TileData data) {
	this->museum.canvas.set_tile(data);
}

void MuseumDeserializer::add_type(std::string type, Color color, unsigned int weight) {
	if (type.length() == 0) return;
  this->museum.canvas.tile_color.register_color(type, color);
	// this->museum.pathfinding.weights.register_weight(type, weight);
}