blob: 4394c9ea10adb6cb26b6776b8dfc1fc161e3bbbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <map>
#include <string>
#include "Color.h"
class TileColorFactory {
typedef std::map<std::string, Color> 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,
};
};
|