add event management to server shell

This commit is contained in:
Martin Michelsen
2020-02-21 10:20:04 -08:00
parent 1b5a4fe4ee
commit de63349b5d
8 changed files with 391 additions and 162 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ using namespace std;
ServerState::ServerState() : run_dns_server(true),
allow_unregistered_users(false),
run_shell_behavior(RunShellBehavior::Default), next_lobby_id(1) {
run_shell_behavior(RunShellBehavior::Default), next_lobby_id(1),
pre_lobby_event(0) {
this->main_menu.emplace_back(MAIN_MENU_GO_TO_LOBBY, u"Go to lobby",
u"Join the lobby.", 0);
this->main_menu.emplace_back(MAIN_MENU_INFORMATION, u"Information",