Skip to main content

OfflineServerApiClient

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Offline stand-in for the server client. It hands out GameServerInfo.OfflineServer wrapped in LocalServerAccess, allows every join, and throws OfflineException for the rest.

Constructors​

MemberWhat it is
OfflineServerApiClient()Creates an OfflineServerApiClient with default values.

Methods​

MemberWhat it is
Task<AllocationResult> AllocateServerForMigration(int serverIdentifier)Throws OfflineException.
Task<ServerJoinResult> ConnectConsole(int serverIdentifier, bool shouldLaunchServer = true, bool disregardOfflineStatus = true)Always allowed, with empty connection info.
Task CreateEfsMigrationRecordForServer(int serverId)Throws OfflineException.
async Task<IServerAccess> CreateNewServerAsync(GameServerCreateRequest createRequest)Returns a LocalServerAccess for the offline server, with the requested scene index.
Task<IEnumerable<GameServerInfo>> DiscoverServers()Returns just the offline server.
async Task<IServerAccess> GetControllableServerAsync(int serverId)Returns a LocalServerAccess for the offline server, whatever the ID.
async Task<IEnumerable<IServerAccess>> GetControllableServersAsync()Returns one LocalServerAccess for the offline server.
Task<IEnumerable<GameServerInfo>> GetJoinedServersAsync()Returns just the offline server.
Task<MigrationDetailsResponse> GetLatestEfsMigrationForServer(int serverId)Throws OfflineException.
async Task<IEnumerable<GameServerInfo>> GetOnlineServersAsync()Returns just the offline server.
Task<IEnumerable<GameServerInfo>> GetOpenServersAsync()Returns just the offline server.
Task<IEnumerable<GameServerInfo>> GetPublicServersAsync()Returns just the offline server.
async Task<GameServerInfo> GetServerAsync(int serverIdentifier)Returns the offline server, whatever the ID.
Task<IEnumerable<RegionInfo>> GetServerRegions()Returns an empty list.
Task<IEnumerable<GameServerInfo>> GetServersByName(string name)Throws OfflineException.
Task<IEnumerable<GameServerInfo>> GetServersWithPlayer(int playerId)Throws OfflineException.
Task<IEnumerable<GroupPermissions>> GetUserPermissionsForServer(int serverIdentifier, int userIdentifier)Throws OfflineException.
Task<bool> HasPermissionsInServer(int serverIdentifier, int userIdentifier, GroupPermissions[] permissions)Throws OfflineException straight away rather than returning a failed task.
Task<ServerJoinResult> JoinServer(int serverIdentifier, GameVersion version, string deviceIdentifier, string token, bool shouldLaunchServer = true, bool disregardOfflineStatus = true)Always allowed, with empty connection info.
Task RequestBufferIncrease(BufferChangeRequest request)Throws OfflineException.
Task SetServerAsOfflineAsync(int serverIdentifier, bool isForced)Throws OfflineException.
Task SetServerAsOnlineAsync(int serverIdentifier)Throws OfflineException.