Floor is now just a fixture.
This commit is contained in:
parent
23f54bd4fe
commit
e5fa76b03c
6 changed files with 20 additions and 25 deletions
|
|
@ -37,8 +37,6 @@ TEST_CASE("make sure json_mods works", "[components]") {
|
|||
for(auto& comp_data : config["RAT_KING"]["components"]) {
|
||||
if(comp_data["_type"] == "AnimatedScene") {
|
||||
auto comp = components::convert<components::AnimatedScene>(comp_data);
|
||||
// the boss fight for the rat king doesn't have a stage so false=optional
|
||||
REQUIRE(comp.floor == std::nullopt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -49,7 +47,5 @@ TEST_CASE("make sure json_mods works", "[components]") {
|
|||
auto rat_king = world.entity();
|
||||
|
||||
components::configure_entity(world, rat_king, config["RAT_KING"]["components"]);
|
||||
|
||||
auto boss = world.get<AnimatedScene>(rat_king);
|
||||
REQUIRE(boss.floor == std::nullopt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue