blob: b91301fcd0211ed1d3db88783507da35282e6559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "TileAppearance.h"
using namespace std;
Color TileAppearance::get_color(string type) {
auto & type_map = TileAppearance::get_collection();
if (type_map.contains(type))
return type_map.at(type);
return TileAppearance::default_color;
}
void TileAppearance::register_color(string type, Color color) {
auto & type_map = TileAppearance::get_collection();
type_map[type] = color;
}
|