Fix up the colors and rendering so that tilemap just uses components::Tile all the time. Need to load all of the config data from json one time on system start instead of constantly, although constantly does make debugging live easier.

This commit is contained in:
Zed A. Shaw 2025-02-09 15:54:17 -05:00
parent a4c13f7fc9
commit 0cbe20af35
10 changed files with 36 additions and 44 deletions

View file

@ -25,7 +25,7 @@ namespace components {
};
struct Tile {
std::string chr;
std::string display;
std::array<uint8_t, 3> foreground;
std::array<uint8_t, 3> background;
};
@ -78,4 +78,7 @@ namespace components {
};
void configure(ComponentMap& component_map);
// these need to be here if you're using components::convert outside of components.cpp
ENROLL_COMPONENT(Tile, display, foreground, background);
}