Class GameLiftProfile

Namespace
Unity.Multiplayer.Core

The AWS GameLift hosting profile: the server package runs directly on a GameLift-managed fleet instance, no Docker -- GameLift's classic EC2 fleets launch the build's executable straight from its RuntimeConfiguration launch path, not a container. Adds no Dockerfile, only onboarding notes.

public sealed class GameLiftProfile : IHostingProfile
Inheritance
GameLiftProfile
Implements
Inherited Members

Remarks

Three pieces make a GameLift deploy work, each covered by its own ticket's half:

  1. In Runtime, GameLiftServerHost (Runtime/Hosting/GameLift, compiled in only under the MINDATTIC_GAMELIFT version define once the GameLift Server SDK package is installed) drives InitSDK/ProcessReady/ActivateGameSession/ AcceptPlayerSession/RemovePlayerSession/ProcessEnding.
  2. mp-host's GameLiftProvisioner (Hosting.Cli) zips this package, uploads it as a GameLift build and creates the fleet; mp-host does not push a Docker image for this profile (IProvisioner.RequiresContainerImage is false).
  3. GameLiftMatchAllocator creates one game session (and a player session per seat) per match on that fleet once it is up; the fleet itself is provisioned once and stays running between matches, like every other IHostingProfile.

See docs/articles/hosting/gamelift.md for the full setup and cost notes.

Fields

NotesFileName

The notes file's name.

public const string NotesFileName = "HOSTING.txt"

Field Value

string

ProfileId

This profile's Id.

public const string ProfileId = "GameLift"

Field Value

string

Properties

Description

One sentence: what host this suits.

public string Description { get; }

Property Value

string

DisplayName

A name for people (Generic VPS (Docker)).

public string DisplayName { get; }

Property Value

string

Id

A short, file-safe identifier (GenericVps), used in menus, the manifest and folder names.

public string Id { get; }

Property Value

string

Methods

ComposeNotes(ServerPackageSpec)

The HOSTING.txt text.

public static string ComposeNotes(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

Returns

string

Configure(ServerPackageSpec)

Adjusts the package's settings for this host before anything is written, such as forcing WebSocket. Called once by For(IHostingProfile, string, NetConfig, ServerSettings).

public void Configure(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

CreateFiles(ServerPackageSpec)

The profile's own files, added to the package after the common ones. None may share a path with them.

public IReadOnlyList<ServerPackageFile> CreateFiles(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

Returns

IReadOnlyList<ServerPackageFile>