|
OpenTTD GameScript API 20251104-master-g6d5f150b3d
|
Class that handles all client related functions. More...
#include <script_client.hpp>
Public Types | |
| enum | ClientID : int { 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. | |
| static string | GetName (ClientID client) |
| Get the name of the given client. | |
| static GSCompany::CompanyID | GetCompany (ClientID client) |
| Get the company in which the given client is playing. | |
| static GSDate::Date | GetJoinDate (ClientID client) |
| Get the economy-date when the given client has joined. | |
Class that handles all client related functions.
| enum GSClient::ClientID : int |
|
static |
Get the company in which the given client is playing.
| client | The client to get company for. |
|
static |
Get the economy-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. |