Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
clientlauncher.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include <string>
8
10class Settings;
11class MyEventReceiver;
12class InputHandler;
13struct GameStartData;
14struct MainMenuData;
15
17{
18public:
19 ClientLauncher() = default;
20
22
23 bool run(GameStartData &start_data, const Settings &cmd_args);
24
25private:
26 void init_args(GameStartData &start_data, const Settings &cmd_args);
27 bool init_engine();
28 void init_input();
29
30 static void setting_changed_callback(const std::string &name, void *data);
31 void config_guienv();
32
33 bool launch_game(std::string &error_message, bool reconnect_requested,
34 GameStartData &start_data, const Settings &cmd_args);
35
36 void main_menu(MainMenuData *menudata);
37
38 bool skip_main_menu = false;
39 bool random_input = false;
41 InputHandler *input = nullptr;
43};
Definition clientlauncher.h:17
ClientLauncher()=default
bool random_input
Definition clientlauncher.h:39
MyEventReceiver * receiver
Definition clientlauncher.h:42
~ClientLauncher()
Definition clientlauncher.cpp:56
bool run(GameStartData &start_data, const Settings &cmd_args)
Definition clientlauncher.cpp:82
bool skip_main_menu
Definition clientlauncher.h:38
void init_args(GameStartData &start_data, const Settings &cmd_args)
Definition clientlauncher.cpp:263
RenderingEngine * m_rendering_engine
Definition clientlauncher.h:40
bool launch_game(std::string &error_message, bool reconnect_requested, GameStartData &start_data, const Settings &cmd_args)
Definition clientlauncher.cpp:381
InputHandler * input
Definition clientlauncher.h:41
bool init_engine()
Definition clientlauncher.cpp:286
void init_input()
Definition clientlauncher.cpp:297
void config_guienv()
Definition clientlauncher.cpp:329
void main_menu(MainMenuData *menudata)
Definition clientlauncher.cpp:530
static void setting_changed_callback(const std::string &name, void *data)
Definition clientlauncher.cpp:324
Definition inputhandler.h:222
Definition inputhandler.h:123
Definition renderingengine.h:68
Definition settings.h:109
Definition gameparams.h:29
Definition guiMainMenu.h:21