diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2020-07-14 19:10:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 19:10:37 +0200 |
commit | 4fa1e03f6844a24fc4b37f22e7264957b2a71d06 (patch) | |
tree | 0de95205bbe4b2123d87583a5e9639817b39824c /src/client/game.h | |
parent | 2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8 (diff) | |
download | dragonfireclient-4fa1e03f6844a24fc4b37f22e7264957b2a71d06.tar.xz |
Cleanup ClientLauncher structure (#10160)
Remove duplicated variables and unify the startup data into a new (inherited) struct.
Diffstat (limited to 'src/client/game.h')
-rw-r--r-- | src/client/game.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/client/game.h b/src/client/game.h index 69e6eed0b..d04153271 100644 --- a/src/client/game.h +++ b/src/client/game.h @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class InputHandler; class ChatBackend; /* to avoid having to include chat.h */ struct SubgameSpec; +struct GameStartData; struct Jitter { f32 max, min, avg, counter, max_sample, min_sample, max_fraction; @@ -41,16 +42,10 @@ struct CameraOrientation { f32 camera_pitch; // "up/down" }; + void the_game(bool *kill, - bool random_input, InputHandler *input, - const std::string &map_dir, - const std::string &playername, - const std::string &password, - const std::string &address, // If "", local server is used - u16 port, + const GameStartData &start_data, std::string &error_message, ChatBackend &chat_backend, - bool *reconnect_requested, - const SubgameSpec &gamespec, // Used for local game - bool simple_singleplayer_mode); + bool *reconnect_requested); |