wip
This commit is contained in:
@@ -2,16 +2,34 @@
|
||||
#define FRONTEND_MENU_MENU_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include "../../content/ContentPack.h"
|
||||
|
||||
|
||||
namespace gui {
|
||||
class Panel;
|
||||
}
|
||||
|
||||
class Engine;
|
||||
class LevelController;
|
||||
|
||||
using packconsumer = std::function<void(const ContentPack& pack)>;
|
||||
|
||||
namespace menus {
|
||||
// implemented in menu_settings.cpp
|
||||
extern void create_settings_panel(Engine* engine);
|
||||
|
||||
// implemented in menu_pause.cpp
|
||||
extern void create_pause_panel(Engine* engine, LevelController* controller);
|
||||
extern std::shared_ptr<gui::Panel> create_packs_panel(
|
||||
const std::vector<ContentPack>& packs,
|
||||
Engine* engine,
|
||||
bool backbutton,
|
||||
packconsumer callback,
|
||||
packconsumer remover
|
||||
);
|
||||
|
||||
/// @brief Load world, convert if required and set to LevelScreen.
|
||||
/// @param name world name
|
||||
|
||||
Reference in New Issue
Block a user