#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; TileColorFactory::register_color(type, color); }