Game now builds and is using the new dynamic component loading but enemies do not spawn in and device events are really working. Also inventory is a giant bag of fail and needs a rewrite.

This commit is contained in:
Zed A. Shaw 2025-02-08 21:16:25 -05:00
parent 9e91c71125
commit a69be90464
23 changed files with 130 additions and 122 deletions

View file

@ -1,14 +1,15 @@
#include "devices.hpp"
#include "components.hpp"
#include "events.hpp"
#include "dbc.hpp"
namespace components {
/*
* Note: This should go away or at least the event names to
* numbers should probably be automatically created.
*/
void Device::configure_events(json &event_names) {
void Device::configure_events(std::vector<std::string> &event_names) {
(void)event_names;
/*
for(string name : event_names) {
if(name == "Events::GUI::STAIRS_DOWN") {
events.push_back(Events::GUI::STAIRS_DOWN);
@ -20,5 +21,6 @@ namespace components {
dbc::sentinel(fmt::format("Unknown device event {}", name));
}
}
*/
}
}