Initial idea for the interactive devices thing but I kind of hate it. Going to try another idea that will be simpler.

This commit is contained in:
Zed A. Shaw 2025-01-16 14:33:07 -05:00
parent e30c18fbdf
commit 8defc0bedf
8 changed files with 48 additions and 26 deletions

View file

@ -1,14 +1,6 @@
#include "components.hpp"
namespace components {
void StairsDown(json &, DinkyECS::World &) {
fmt::println("GOING DOWN!");
}
void StairsUp(json &, DinkyECS::World &) {
fmt::println("GOING UP!");
}
void configure(DinkyECS::World &world, DinkyECS::Entity entity, json& entity_data) {
for(auto &comp : entity_data["components"]) {
json& config = comp["config"];
@ -45,6 +37,8 @@ namespace components {
dbc::sentinel(fmt::format("ITEM COMPONENT TYPE MISSING: {}",
std::string(comp["type"])));
}
// json config variable dies
}
}
}