Fixed up dbc.cpp so now just use it everywhere. I next need to find a way to pass that to format automatically.
This commit is contained in:
parent
2baa044695
commit
a6d83db20c
10 changed files with 25 additions and 21 deletions
|
@ -293,7 +293,7 @@ void System::collision(GameLevel &level) {
|
|||
} else if(world.has<Device>(entity)) {
|
||||
System::device(world, player.entity, entity);
|
||||
} else {
|
||||
println("UNKNOWN COLLISION TYPE {}", entity);
|
||||
dbc::log(fmt::format("UNKNOWN COLLISION TYPE {}", entity));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -308,7 +308,7 @@ void System::device(DinkyECS::World &world, DinkyECS::Entity actor, DinkyECS::En
|
|||
auto& device = world.get<Device>(item);
|
||||
|
||||
for(auto event : device.events) {
|
||||
fmt::println("Device event received {}", event);
|
||||
dbc::log(fmt::format("Device event received {}", event));
|
||||
|
||||
if(event == "Events::GUI::STAIRS_DOWN") {
|
||||
world.send<Events::GUI>(Events::GUI::STAIRS_DOWN, actor, device);
|
||||
|
@ -317,7 +317,7 @@ void System::device(DinkyECS::World &world, DinkyECS::Entity actor, DinkyECS::En
|
|||
}
|
||||
}
|
||||
|
||||
println("entity {} INTERACTED WITH DEVICE {}", actor, item);
|
||||
dbc::log(fmt::format("entity {} INTERACTED WITH DEVICE {}", actor, item));
|
||||
}
|
||||
|
||||
void System::plan_motion(DinkyECS::World& world, Point move_to) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue