Rename to GameDB and GameDB::Level.
This commit is contained in:
parent
c46927ea10
commit
a20d701096
23 changed files with 142 additions and 151 deletions
|
@ -12,29 +12,28 @@ 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 GameDB {
|
||||
struct Level {
|
||||
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();
|
||||
size_t new_level(std::shared_ptr<DinkyECS::World> prev_world);
|
||||
GameLevel& create_level();
|
||||
Level& create_level();
|
||||
|
||||
void init();
|
||||
GameLevel &next();
|
||||
GameLevel &previous();
|
||||
GameLevel ¤t();
|
||||
Level &next();
|
||||
Level &previous();
|
||||
Level ¤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);
|
||||
Level &get(size_t index);
|
||||
components::Position& player_position();
|
||||
DinkyECS::Entity the_player();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue