Class GameLiftCreateGameSessionRequest
- Namespace
- Unity.Multiplayer.Core
What to ask GameLift's CreateGameSession to start, on a fleet mp-host already created.
public sealed class GameLiftCreateGameSessionRequest
- Inheritance
-
GameLiftCreateGameSessionRequest
- Inherited Members
Constructors
GameLiftCreateGameSessionRequest(string, string, int, string, IReadOnlyDictionary<string, string>, string)
Describes a game session request.
public GameLiftCreateGameSessionRequest(string fleetId, string aliasId, int maximumPlayerSessionCount, string name, IReadOnlyDictionary<string, string> gameProperties, string idempotencyToken)
Parameters
fleetIdstringaliasIdstringmaximumPlayerSessionCountintnamestringgamePropertiesIReadOnlyDictionary<string, string>idempotencyTokenstring
Properties
AliasId
An alias to resolve to a fleet instead, letting mp-host swap fleets (an update) without this allocator changing. May be null.
public string AliasId { get; }
Property Value
FleetId
The fleet to start the session on (from mp-host's GameLiftProvisioner). Ignored when AliasId is set.
public string FleetId { get; }
Property Value
GameProperties
Free-form key/value hints GameLift stores with the session and hands back to the server process. May be null or empty.
public IReadOnlyDictionary<string, string> GameProperties { get; }
Property Value
IdempotencyToken
A caller-chosen id GameLift uses to de-duplicate a retried request; the match id is a natural choice. May be null.
public string IdempotencyToken { get; }
Property Value
MaximumPlayerSessionCount
How many players the session must have room for (MaxPlayers).
public int MaximumPlayerSessionCount { get; }
Property Value
Name
A name for the session, shown in the GameLift console; the match id is a natural choice. May be null.
public string Name { get; }