2018-12-23 07:17:08 -05:00
|
|
|
#pragma once
|
2019-01-05 17:34:46 -05:00
|
|
|
#include "html_window.hpp"
|
2018-12-23 07:17:08 -05:00
|
|
|
|
2018-12-23 12:25:22 -05:00
|
|
|
class launcher final
|
2018-12-23 07:17:08 -05:00
|
|
|
{
|
|
|
|
public:
|
2018-12-23 12:25:22 -05:00
|
|
|
enum mode
|
|
|
|
{
|
2018-12-26 10:28:16 -05:00
|
|
|
none,
|
|
|
|
singleplayer,
|
|
|
|
multiplayer,
|
|
|
|
server,
|
2018-12-23 12:25:22 -05:00
|
|
|
};
|
|
|
|
|
2018-12-23 07:17:08 -05:00
|
|
|
launcher();
|
|
|
|
|
2018-12-23 12:25:22 -05:00
|
|
|
mode run() const;
|
2018-12-23 07:17:08 -05:00
|
|
|
|
|
|
|
private:
|
2018-12-26 10:28:16 -05:00
|
|
|
mode mode_ = none;
|
2018-12-23 12:25:22 -05:00
|
|
|
|
2019-01-05 17:34:46 -05:00
|
|
|
html_window main_window_;
|
|
|
|
html_window settings_window_;
|
2018-12-23 12:25:22 -05:00
|
|
|
|
|
|
|
void select_mode(mode mode);
|
2019-01-05 11:32:34 -05:00
|
|
|
|
2019-01-05 17:34:46 -05:00
|
|
|
static std::string load_content(int res);
|
2018-12-23 07:17:08 -05:00
|
|
|
};
|