Class PlayResolver
- Namespace
- Coherence.Runtime
- Assembly
- Coherence.Runtime.dll
[Obsolete("You should use the CloudService instance from CoherenceBridge to communicate with the coherence Cloud.")]
[Deprecated("01/03/2023", 1, 0, 0, Reason = "PlayClient has been deprecated, moved to non-static context, use CloudService instead.")]
public static class PlayResolver
- Inheritance
-
PlayResolver
Methods
CreateRoom(string, RoomCreationOptions)
public static Task<RoomData> CreateRoom(string region, RoomCreationOptions options = null)
Parameters
region
string
options
RoomCreationOptions
Returns
- Task<RoomData>
EnsurePlayConnection()
public static Task<bool> EnsurePlayConnection()
Returns
- Task<bool>
FetchLocalRegions()
public static Task<(bool, string)> FetchLocalRegions()
Returns
- Task<(bool, string)>
FetchLocalWorld()
public static Task<(bool, WorldData)> FetchLocalWorld()
Returns
- Task<(bool, WorldData)>
FetchRegions()
public static Task<IReadOnlyList<string>> FetchRegions()
Returns
- Task<IReadOnlyList<string>>
FetchRooms(string, string[])
public static Task<IReadOnlyList<RoomData>> FetchRooms(string region, string[] tags = null)
Parameters
region
string
tags
string[]
Returns
- Task<IReadOnlyList<RoomData>>
FetchWorlds(string, string)
public static Task<IReadOnlyList<WorldData>> FetchWorlds(string region = "", string simSlug = "")
Parameters
region
string
simSlug
string
Returns
- Task<IReadOnlyList<WorldData>>
GetFetchRegionsCooldown()
public static TimeSpan GetFetchRegionsCooldown()
Returns
- TimeSpan
GetFetchRoomsCooldown()
public static TimeSpan GetFetchRoomsCooldown()
Returns
- TimeSpan
GetFetchWorldsCooldown()
public static TimeSpan GetFetchWorldsCooldown()
Returns
- TimeSpan
GetRoomEndpointData(RoomData)
public static (EndpointData, bool) GetRoomEndpointData(RoomData room)
Parameters
room
RoomData
Returns
- (EndpointData, bool)
GetWorldEndpoint(WorldData)
public static (EndpointData, bool) GetWorldEndpoint(WorldData world)
Parameters
world
WorldData
Returns
- (EndpointData, bool)
JoinRoom(RoomData, bool)
[Obsolete("Please use CoherenceBridge.JoinRoom instead.")]
public static void JoinRoom(RoomData room, bool isSimulator)
Parameters
room
RoomData
isSimulator
bool
JoinWorld(WorldData, bool)
[Obsolete("Please use CoherenceBridge.JoinWorld instead.")]
public static void JoinWorld(WorldData data, bool isSimulator = false)
Parameters
data
WorldData
isSimulator
bool
RemoveRoom(string, ulong, string)
public static Task RemoveRoom(string region, ulong uniqueID, string roomToken)
Parameters
region
string
uniqueID
ulong
roomToken
string
Returns
- Task