Best I can do to simplify the check(fmt::format)crap is to make a little macro to do the format part.
This commit is contained in:
parent
6710469ee1
commit
f0b04107ab
28 changed files with 108 additions and 108 deletions
|
|
@ -18,7 +18,7 @@ namespace boss {
|
|||
{
|
||||
$host_combat = $world->get_if<components::Combat>(player_id);
|
||||
dbc::check($host_combat,
|
||||
fmt::format("No combat for host with player_id={}", player_id));
|
||||
$F("No combat for host with player_id={}", player_id));
|
||||
$ui.init();
|
||||
}
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ namespace boss {
|
|||
using combat::BattleHostState;
|
||||
|
||||
dbc::check(data.type() == typeid(components::CombatResult),
|
||||
fmt::format("Boss Fight wrong any data={}", data.type().name()));
|
||||
$F("Boss Fight wrong any data={}", data.type().name()));
|
||||
|
||||
auto result = std::any_cast<components::CombatResult>(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue