New bossfight layout with fake 'paper cutouts' to work out how the UI would work.
This commit is contained in:
parent
a4fdfb779f
commit
d398b042a7
13 changed files with 79 additions and 20 deletions
|
|
@ -38,7 +38,7 @@ TEST_CASE("make sure json_mods works", "[components]") {
|
|||
if(comp_data["_type"] == "BossFight") {
|
||||
auto comp = components::convert<components::BossFight>(comp_data);
|
||||
// the boss fight for the rat king doesn't have a stage so false=optional
|
||||
REQUIRE(comp.stage == std::nullopt);
|
||||
REQUIRE(comp.floor != std::nullopt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -51,11 +51,11 @@ TEST_CASE("make sure json_mods works", "[components]") {
|
|||
components::configure_entity(world, rat_king, config["RAT_KING"]["components"]);
|
||||
|
||||
auto boss = world.get<BossFight>(rat_king);
|
||||
REQUIRE(boss.stage == std::nullopt);
|
||||
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.stage != std::nullopt);
|
||||
REQUIRE(boss2.floor != std::nullopt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue