Luanti 5.17.0-dev
Loading...
Searching...
No Matches
GameClientData Struct Reference

#include <gameparams.h>

Inheritance diagram for GameClientData:
Collaboration diagram for GameClientData:

Public Types

enum  Mode { GM_SINGLEPLAYER , GM_HOST_AND_JOIN , GM_JOIN , GM_Undefined }

Public Member Functions

bool isSinglePlayer () const
bool isAnyServer () const

Public Attributes

std::string name
std::string password
std::string address
enum GameClientData::Mode mode = GM_Undefined
ELoginRegister allow_login_or_register = ELoginRegister::Any

Member Enumeration Documentation

◆ Mode

Enumerator
GM_SINGLEPLAYER 
GM_HOST_AND_JOIN 
GM_JOIN 
GM_Undefined 

Member Function Documentation

◆ isAnyServer()

bool GameClientData::isAnyServer ( ) const
inline

References GM_HOST_AND_JOIN, GM_SINGLEPLAYER, and mode.

Referenced by ClientLauncher::launch_game().

Here is the caller graph for this function:

◆ isSinglePlayer()

bool GameClientData::isSinglePlayer ( ) const
inline

References GM_SINGLEPLAYER, and mode.

Referenced by ClientLauncher::launch_game(), and Game::startup().

Here is the caller graph for this function:

Member Data Documentation

◆ address

std::string GameClientData::address

◆ allow_login_or_register

ELoginRegister GameClientData::allow_login_or_register = ELoginRegister::Any

◆ mode

◆ name

◆ password

std::string GameClientData::password

The documentation for this struct was generated from the following file: