iw5-mod/src/launcher/launcher.hpp
2019-01-05 17:32:34 +01:00

31 lines
420 B
C++

#pragma once
#include "window.hpp"
#include "html_frame.hpp"
class launcher final
{
public:
enum mode
{
none,
singleplayer,
multiplayer,
server,
};
launcher();
mode run() const;
private:
mode mode_ = none;
window window_;
html_frame html_frame_;
LRESULT handler(const UINT message, const WPARAM w_param, const LPARAM l_param);
void select_mode(mode mode);
static std::string load_content();
};