OpenTTD GameScript API
20240425-master-ge8d25d68b9
|
Class that handles all client related functions. More...
Public Types | |
enum | ClientID : uint32_t { CLIENT_INVALID, CLIENT_SERVER, CLIENT_FIRST } |
Different constants related to ClientID. More... | |
Static Public Member Functions | |
static ClientID | ResolveClientID (ClientID client) |
Resolves the given client id to the correct index for the client. More... | |
static std::optional< std::string > | GetName (ClientID client) |
Get the name of the given client. More... | |
static GSCompany::CompanyID | GetCompany (ClientID client) |
Get the company in which the given client is playing. More... | |
static GSDate::Date | GetJoinDate (ClientID client) |
Get the game date when the given client has joined. More... | |
Class that handles all client related functions.
enum GSClient::ClientID : uint32_t |
|
static |
Get the company in which the given client is playing.
client | The client to get company for. |
|
static |
Get the game date when the given client has joined.
client | The client to get joining date for. |
|
static |
Get the name of the given client.
client | The client to get the name for. |