add a couple of convenience features and clean up config file a bit

This commit is contained in:
Martin Michelsen
2019-08-10 00:08:40 -07:00
parent 9ee2e97738
commit 30516ccf50
4 changed files with 37 additions and 35 deletions
+7 -1
View File
@@ -26,10 +26,16 @@ struct PortConfiguration {
};
struct ServerState {
enum class RunShellBehavior {
Default = 0,
Always,
Never,
};
std::u16string name;
std::unordered_map<std::string, PortConfiguration> port_configuration;
bool run_dns_server;
bool run_interactive_shell;
RunShellBehavior run_shell_behavior;
std::shared_ptr<const QuestIndex> quest_index;
std::shared_ptr<const LevelTable> level_table;
std::shared_ptr<const BattleParamTable> battle_params;