blob: 5608a015805aa15a11f8105efdd5f30d458308ca (
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,
};
};
|