Setup for the LevelManager to take charge of all level operations.
This commit is contained in:
parent
193f5f915e
commit
18a5f6bfa9
7 changed files with 99 additions and 11 deletions
7
gui.cpp
7
gui.cpp
|
@ -287,6 +287,9 @@ void GUI::handle_world_events() {
|
|||
} break;
|
||||
case eGUI::STAIRS_DOWN: {
|
||||
auto& device = std::any_cast<Device&>(data);
|
||||
|
||||
next_level();
|
||||
|
||||
$status_ui.log(format("Up stairs has test {}.",
|
||||
(bool)device.config["test"]));
|
||||
toggle_modal(&$next_level_ui, $next_level);
|
||||
|
@ -495,3 +498,7 @@ int GUI::main(bool run_once) {
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GUI::next_level() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue