A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Server session that never talks to the API. Used for a server started with a negative ID (/start_server -1, how Tavern starts servers) and by the offline client.
Constructors
Properties
| Member | What it is |
|---|
bool IsActive { get; set; } | Settable flag; nothing here reads it. |
GameServerInfo ServerInfo { get; } | The server info it was made with. |
int? ServerSession { get; } | Always null; there is no API session. |
Methods
| Member | What it is |
|---|
Task<GameServerInfo> GetTemplateServer() | Returns this server's own info. |
Task Ping() | Does nothing. |
Task SetOnlinePlayersAsync(IEnumerable<UserInfo> onlinePlayers) | Stores the online player list on ServerInfo without sending it anywhere. |
Task StartAsync(ServerStartArguments startupArgs) | Does nothing. |
Task StopAsync(ShutdownReason reason) | Does nothing. |