diff options
author | Patric Stout <truebrain@openttd.org> | 2021-04-29 15:37:02 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-07-11 20:38:42 +0200 |
commit | e4d216e44b4a5d87094b4478ea4cf18109f99a35 (patch) | |
tree | 837b4b027ebaf0a328d0336ac93c110379a015ba /src/settings_type.h | |
parent | 1baec41542780cf4fc898df7d2fc9925d823fb44 (diff) | |
download | openttd-e4d216e44b4a5d87094b4478ea4cf18109f99a35.tar.xz |
Feature: join servers based on their invite code
This removes the need to know a server IP to join it. Invite codes
are small (~7 characters) indentifiers for servers, which can be
exchanged with other players to join the servers.
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 3377bdede..79e462c3e 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -266,6 +266,8 @@ 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 + 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 std::string server_password; ///< password for joining this server std::string rcon_password; ///< password for rconsole (server side) |