diff options
author | Patric Stout <truebrain@openttd.org> | 2021-07-11 21:57:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-11 21:57:05 +0200 |
commit | b6a116a2479eb62aece540633c41d0f54a481fd6 (patch) | |
tree | 977ffda77d342bf5adc9105f25eed7e13e5d993f /src/settings_type.h | |
parent | 8bb9c3f6466c6d15a1a02e963b06b95f9ffb6397 (diff) | |
download | openttd-b6a116a2479eb62aece540633c41d0f54a481fd6.tar.xz |
Add: allow setting your server visibility to "invite-only" (#9434)
In this mode you do register to the Game Coordinator, but your
server will not show up in the public server listing. You can give
your friends the invite code of the server with which they can
join.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r-- | src/settings_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h index 79e462c3e..93e2f049f 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -15,6 +15,7 @@ #include "town_type.h" #include "transport_type.h" #include "network/core/config.h" +#include "network/network_type.h" #include "company_type.h" #include "cargotype.h" #include "linkgraph/linkgraph_type.h" @@ -266,6 +267,7 @@ struct NetworkSettings { uint16 server_port; ///< port the server listens on uint16 server_admin_port; ///< port the server listens on for the admin network bool server_admin_chat; ///< allow private chat for the server to be distributed to the admin network + ServerGameType server_game_type; ///< Server type: local / public / invite-only. std::string server_invite_code; ///< Invite code to use when registering as server. std::string server_invite_code_secret; ///< Secret to proof we got this invite code from the Game Coordinator. std::string server_name; ///< name of the server |