levelmanager.* is now gone, but the code is just moved over to game_level. Now to clean up the api and give it a new name.

This commit is contained in:
Zed A. Shaw 2025-08-20 01:10:42 -04:00
parent 5aca2fb56a
commit a83ee77eea
17 changed files with 147 additions and 178 deletions

View file

@ -2,19 +2,31 @@
#include "dinkyecs.hpp"
#include "gui/boss_fight_ui.hpp"
#include "dinkyecs.hpp"
#include "lights.hpp"
#include "map.hpp"
#include <memory>
#include "spatialmap.hpp"
struct GameLevel;
struct LevelManager;
namespace components {
struct Position;
}
struct GameLevel {
size_t index;
DinkyECS::Entity player;
std::shared_ptr<Map> map = nullptr;
std::shared_ptr<DinkyECS::World> world = nullptr;
std::shared_ptr<lighting::LightRender> lights = nullptr;
std::shared_ptr<SpatialMap> collision = nullptr;
};
namespace Game {
std::shared_ptr<gui::BossFightUI> create_bossfight();
GameLevel& create_level();
void init();
LevelManager& get_the_manager();
GameLevel &next();
GameLevel &previous();
GameLevel &current();