aboutsummaryrefslogtreecommitdiff
path: root/TileAppearance.h
diff options
context:
space:
mode:
Diffstat (limited to 'TileAppearance.h')
-rw-r--r--TileAppearance.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/TileAppearance.h b/TileAppearance.h
index 25db909..8a7a0f7 100644
--- a/TileAppearance.h
+++ b/TileAppearance.h
@@ -1,9 +1,21 @@
#pragma once
+#include <map>
+#include <string>
+
#include "Color.h"
class TileAppearance {
+ typedef std::map<std::string, Color> TileAppearanceCollection;
+
public:
- Color color;
+ static Color get_color(std::string);
+ static void register_color(std::string, Color);
+
+private:
+ static TileAppearanceCollection & get_collection() {
+ static TileAppearanceCollection c = {};
+ return c;
+ }
};