Class CloudService
Runtime API to be able to interface with an Organization and Project from the coherence Cloud. Check the coherence Cloud tab in the coherence Hub window for more details.
public class CloudService
- Inheritance
-
CloudService
- Extension Methods
Constructors
CloudService(string, bool, IRuntimeSettings)
public CloudService(string uniqueId = null, bool autoLoginAsGuest = true, IRuntimeSettings runtimeSettings = null)
Parameters
uniqueId
stringautoLoginAsGuest
boolruntimeSettings
IRuntimeSettings
Properties
GameServers
GameServers REST service that controls game servers in the specified coherence Project from the RuntimeSettings.
public IGameServersService GameServers { get; }
Property Value
GameServices
Collection of Game Services that you can interact with in the coherence Dashboard under the Game Services section of your project.
public GameServices GameServices { get; }
Property Value
IsConnectedToCloud
Returns true when the Web Socket is connected.
public bool IsConnectedToCloud { get; }
Property Value
IsLoggedIn
Returns true when the Web Socket is connected and when we are logged in to coherence Cloud.
public bool IsLoggedIn { get; }
Property Value
Rooms
Rooms REST service to fetch, create and delete rooms in the specified coherence Project from the RuntimeSettings.
public CloudRooms Rooms { get; }
Property Value
RuntimeSettings
RuntimeSettings that you pass through the constructor, if none is specified, RuntimeSettings.Instance will be used.
public IRuntimeSettings RuntimeSettings { get; }
Property Value
Worlds
Worlds REST service to fetch the available worlds that are online in the specified coherence Project from the RuntimeSettings.
public WorldsService Worlds { get; }
Property Value
Methods
Dispose()
public void Dispose()
WaitForCloudServiceLoginAsync(int)
Async method you can use to wait for the CloudService to be ready.
public Task<bool> WaitForCloudServiceLoginAsync(int millisecondsPollDelay)
Parameters
millisecondsPollDelay
int
Returns
WaitForCloudServiceLoginRoutine()
IEnumerator you can use to wait for the CloudService to be ready within a Coroutine.
public IEnumerator WaitForCloudServiceLoginRoutine()