#pragma once #include #include #include "Color.h" class TileColorFactory { typedef std::map TileAppearanceCollection; public: const Color & get_color(const std::string &); void register_color(const std::string &, const Color &); private: TileAppearanceCollection collection; static constexpr Color default_color = { .red = 0xff, .green = 0xff, .blue = 0xff, }; };