Next phase of the refactor is done. Now to replace everything in Systems.
This commit is contained in:
parent
644ff6edc0
commit
81e25f73bb
10 changed files with 163 additions and 82 deletions
27
game_level.hpp
Normal file
27
game_level.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include "dinkyecs.hpp"
|
||||
#include "gui/boss_fight_ui.hpp"
|
||||
|
||||
struct GameLevel;
|
||||
struct LevelManager;
|
||||
namespace components {
|
||||
struct Position;
|
||||
}
|
||||
|
||||
namespace Game {
|
||||
std::shared_ptr<gui::BossFightUI> create_bossfight();
|
||||
GameLevel& create_level();
|
||||
|
||||
void init();
|
||||
LevelManager& get_the_manager();
|
||||
GameLevel &next();
|
||||
GameLevel &previous();
|
||||
GameLevel ¤t();
|
||||
size_t current_index();
|
||||
std::shared_ptr<DinkyECS::World> current_world();
|
||||
GameLevel &get(size_t index);
|
||||
DinkyECS::Entity spawn_enemy(const std::string& named);
|
||||
components::Position& player_position();
|
||||
DinkyECS::Entity the_player();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue