Files are now in a src directory and I'm using a src/meson.build and tests/meson.build to specify what to build.
This commit is contained in:
parent
4778677647
commit
1d4ae911b9
108 changed files with 94 additions and 83 deletions
35
src/game_level.hpp
Normal file
35
src/game_level.hpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#pragma once
|
||||
|
||||
#include "dinkyecs.hpp"
|
||||
#include "boss/ui.hpp"
|
||||
#include "lights.hpp"
|
||||
#include "map.hpp"
|
||||
#include <memory>
|
||||
#include "spatialmap.hpp"
|
||||
|
||||
namespace components {
|
||||
struct Position;
|
||||
}
|
||||
|
||||
namespace GameDB {
|
||||
struct Level {
|
||||
size_t index = 0;
|
||||
DinkyECS::Entity player = DinkyECS::NONE;
|
||||
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;
|
||||
};
|
||||
|
||||
Level& create_level();
|
||||
|
||||
void init();
|
||||
Level ¤t_level();
|
||||
std::shared_ptr<DinkyECS::World> current_world();
|
||||
components::Position& player_position();
|
||||
DinkyECS::Entity the_player();
|
||||
|
||||
std::shared_ptr<DinkyECS::World> clone_load_world(std::shared_ptr<DinkyECS::World> prev_world);
|
||||
void load_configs(DinkyECS::World &world);
|
||||
void register_level(Level level);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue