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:
- In Runtime,
GameLiftServerHost(Runtime/Hosting/GameLift, compiled in only under theMINDATTIC_GAMELIFTversion define once the GameLift Server SDK package is installed) drivesInitSDK/ProcessReady/ActivateGameSession/AcceptPlayerSession/RemovePlayerSession/ProcessEnding. - 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.RequiresContainerImageis false). - 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
ProfileId
This profile's Id.
public const string ProfileId = "GameLift"
Field Value
Properties
Description
One sentence: what host this suits.
public string Description { get; }
Property Value
DisplayName
A name for people (Generic VPS (Docker)).
public string DisplayName { get; }
Property Value
Id
A short, file-safe identifier (GenericVps), used in menus, the manifest and folder names.
public string Id { get; }
Property Value
Methods
ComposeNotes(ServerPackageSpec)
The HOSTING.txt text.
public static string ComposeNotes(ServerPackageSpec spec)
Parameters
specServerPackageSpec
Returns
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
specServerPackageSpec
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
specServerPackageSpec