iw5-mod/src/launcher/launcher.hpp

31 lines
420 B
C++
Raw Normal View History

2018-12-23 07:17:08 -05:00
#pragma once
#include "window.hpp"
2019-01-05 05:44:45 -05:00
#include "html_frame.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
2018-12-23 07:17:08 -05:00
window window_;
2019-01-05 05:44:45 -05:00
html_frame html_frame_;
2018-12-23 12:25:22 -05:00
LRESULT handler(const UINT message, const WPARAM w_param, const LPARAM l_param);
void select_mode(mode mode);
2019-01-05 11:32:34 -05:00
static std::string load_content();
2018-12-23 07:17:08 -05:00
};