(svn r13337) -Doc: add documentation to some variables in settings_type.h.

pull/155/head
rubidium 16 years ago
parent 2bcc9d4d49
commit 7526ee09a1

@ -86,33 +86,33 @@ struct GUISettings {
/** All settings related to the network. */ /** All settings related to the network. */
struct NetworkSettings { struct NetworkSettings {
#ifdef ENABLE_NETWORK #ifdef ENABLE_NETWORK
uint16 sync_freq; uint16 sync_freq; ///< how often do we check whether we are still in-sync
uint8 frame_freq; uint8 frame_freq; ///< how often do we send commands to the clients
uint16 max_join_time; uint16 max_join_time; ///< maximum amount of time, in game ticks, a client may take to join
bool pause_on_join; bool pause_on_join; ///< pause the game when people join
char server_bind_ip[NETWORK_HOSTNAME_LENGTH]; char server_bind_ip[NETWORK_HOSTNAME_LENGTH]; ///< IP address the server binds to
uint16 server_port; uint16 server_port; ///< port the server listens on
bool server_advertise; char server_name[NETWORK_NAME_LENGTH]; ///< name of the server
uint8 lan_internet; char server_password[NETWORK_PASSWORD_LENGTH]; ///< passowrd for joining this server
char player_name[NETWORK_NAME_LENGTH]; char rcon_password[NETWORK_PASSWORD_LENGTH]; ///< passowrd for rconsole (server side)
char server_password[NETWORK_PASSWORD_LENGTH]; bool server_advertise; ///< advertise the server to the masterserver
char rcon_password[NETWORK_PASSWORD_LENGTH]; uint8 lan_internet; ///< search on the LAN or internet for servers
char default_company_pass[NETWORK_PASSWORD_LENGTH]; char player_name[NETWORK_NAME_LENGTH]; ///< name of the player
char server_name[NETWORK_NAME_LENGTH]; char default_company_pass[NETWORK_PASSWORD_LENGTH]; ///< default password for new companies in encrypted form
char connect_to_ip[NETWORK_HOSTNAME_LENGTH]; char connect_to_ip[NETWORK_HOSTNAME_LENGTH]; ///< default for the "Add server" query
char network_id[NETWORK_UNIQUE_ID_LENGTH]; char network_id[NETWORK_UNIQUE_ID_LENGTH]; ///< semi-unique ID of the client
bool autoclean_companies; bool autoclean_companies; ///< automatically remove companies that are not in use
uint8 autoclean_unprotected; uint8 autoclean_unprotected; ///< remove passwordless companies after this many months
uint8 autoclean_protected; uint8 autoclean_protected; ///< remove the password from passworded companies after this many months
uint8 max_companies; uint8 max_companies; ///< maximum amount of companies
uint8 max_clients; uint8 max_clients; ///< maximum amount of clients
uint8 max_spectators; uint8 max_spectators; ///< maximum amount of spectators
Year restart_game_year; Year restart_game_year; ///< year the server restarts
uint8 min_players; uint8 min_players; ///< minimum amount of players to unpause the game
uint8 server_lang; uint8 server_lang; ///< language of the server
bool reload_cfg; bool reload_cfg; ///< reload the config file before restarting
char last_host[NETWORK_HOSTNAME_LENGTH]; char last_host[NETWORK_HOSTNAME_LENGTH]; ///< IP address of the last joined server
uint16 last_port; uint16 last_port; ///< port of the last joined server
#else /* ENABLE_NETWORK */ #else /* ENABLE_NETWORK */
#endif #endif
}; };

Loading…
Cancel
Save