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:
parent
9e91c71125
commit
a69be90464
23 changed files with 130 additions and 122 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "spatialmap.hpp"
|
||||
#include "dbc.hpp"
|
||||
#include "lights.hpp"
|
||||
#include "inventory.hpp"
|
||||
#include "events.hpp"
|
||||
|
||||
using std::string;
|
||||
|
@ -208,8 +209,9 @@ void System::pickup(DinkyECS::World &world, DinkyECS::Entity actor, DinkyECS::En
|
|||
void System::device(DinkyECS::World &world, DinkyECS::Entity actor, DinkyECS::Entity item) {
|
||||
auto& device = world.get<Device>(item);
|
||||
|
||||
for(int event : device.events) {
|
||||
world.send<Events::GUI>((Events::GUI)event, actor, device);
|
||||
for(auto event : device.events) {
|
||||
// world.send<Events::GUI>((Events::GUI)event, actor, device);
|
||||
fmt::println("BROKEN can't sent device event {}", event);
|
||||
}
|
||||
|
||||
println("entity {} INTERACTED WITH DEVICE {}", actor, item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue