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:
parent
e30c18fbdf
commit
8defc0bedf
8 changed files with 48 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue