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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue