BossFightUI is not managed by the level manager since it is kind of a new level, just with a different mini game.

This commit is contained in:
Zed A. Shaw 2025-03-03 11:15:49 -05:00
parent a3f6ba3c03
commit ca18422930
12 changed files with 49 additions and 67 deletions

View file

@ -21,6 +21,11 @@ LevelScaling LevelManager::scale_level() {
};
}
shared_ptr<gui::BossFightUI> LevelManager::create_bossfight(shared_ptr<DinkyECS::World> prev_world) {
dbc::check(prev_world != nullptr, "Starter world for boss fights can't be null.");
return make_shared<gui::BossFightUI>(*prev_world, "RAT_KING");
}
size_t LevelManager::create_level(shared_ptr<DinkyECS::World> prev_world) {
auto world = make_shared<DinkyECS::World>();