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

@ -218,5 +218,5 @@ 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);
println("entity {} INTERACTED WITH DEVICE {}", actor, item);
device.hit(world);
device.hit(actor, world);
}