aboutsummaryrefslogtreecommitdiff
path: root/TileAppearance.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
commit76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch)
tree92a2dc9b12a542456bdc154f44deb34925883210 /TileAppearance.cpp
parent3f63576819151ff15237a9b4f0651c538cfef067 (diff)
(1/2) rename
Diffstat (limited to 'TileAppearance.cpp')
-rw-r--r--TileAppearance.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TileAppearance.cpp b/TileAppearance.cpp
index b91301f..7c5b080 100644
--- a/TileAppearance.cpp
+++ b/TileAppearance.cpp
@@ -1,18 +1,18 @@
-#include "TileAppearance.h"
+#include "TileColorFactory.h"
using namespace std;
-Color TileAppearance::get_color(string type) {
- auto & type_map = TileAppearance::get_collection();
+Color TileColorFactory::get_color(string type) {
+ auto & type_map = TileColorFactory::get_collection();
if (type_map.contains(type))
return type_map.at(type);
- return TileAppearance::default_color;
+ return TileColorFactory::default_color;
}
-void TileAppearance::register_color(string type, Color color) {
- auto & type_map = TileAppearance::get_collection();
+void TileColorFactory::register_color(string type, Color color) {
+ auto & type_map = TileColorFactory::get_collection();
type_map[type] = color;
}