You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
579 B
30 lines
579 B
#pragma once
|
|
|
|
#include "dinkyecs.hpp"
|
|
#include "lights.hpp"
|
|
#include "map.hpp"
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
|
|
struct GameLevel {
|
|
size_t index = 0;
|
|
std::shared_ptr<Map> map = nullptr;
|
|
std::shared_ptr<DinkyECS::World> world = nullptr;
|
|
std::shared_ptr<lighting::LightRender> lights = nullptr;
|
|
};
|
|
|
|
class LevelManager {
|
|
public:
|
|
std::vector<GameLevel> $levels;
|
|
size_t $current_level = 0;
|
|
|
|
LevelManager();
|
|
|
|
size_t create_level();
|
|
GameLevel &next();
|
|
GameLevel &previous();
|
|
GameLevel ¤t();
|
|
size_t current_index();
|
|
GameLevel &get(size_t index);
|
|
};
|
|
|