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
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
IsReady
Returns true when the Web Socket is connected and when we are logged in to coherence Cloud.
public bool IsReady { 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()
WaitForCloudServiceReadyAsync(int)
Async method you can use to wait for the CloudService to be ready.
public Task<bool> WaitForCloudServiceReadyAsync(int millisecondsPollDelay)
Parameters
millisecondsPollDelay
int
Returns
WaitForCloudServiceReadyRoutine()
IEnumerator you can use to wait for the CloudService to be ready within a Coroutine.
public IEnumerator WaitForCloudServiceReadyRoutine()