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:
parent
5aca2fb56a
commit
a83ee77eea
17 changed files with 147 additions and 178 deletions
|
@ -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 ¤t();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue