The whole boss fight scene is now configurable with json.
This commit is contained in:
parent
06f6098281
commit
06a174040f
5 changed files with 29 additions and 43 deletions
|
|
@ -52,10 +52,4 @@ TEST_CASE("make sure json_mods works", "[components]") {
|
|||
|
||||
auto boss = world.get<BossFight>(rat_king);
|
||||
REQUIRE(boss.floor != std::nullopt);
|
||||
|
||||
// now load the other one for the other way optional is used
|
||||
auto devils_fingers = world.entity();
|
||||
components::configure_entity(world, devils_fingers, config["DEVILS_FINGERS"]["components"]);
|
||||
auto boss2 = world.get<BossFight>(devils_fingers);
|
||||
REQUIRE(boss2.floor != std::nullopt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue