Interface AirshipGameTransferConfig

Configuration for Airship transfers to games.

interface AirshipGameTransferConfig {
    clientTransferData?: unknown;
    maxPlayers?: number;
    preferredServerId?: string;
    region?: string;
    sceneId?: string;
    serverTransferData?: unknown;
}

Properties

clientTransferData?: unknown

JSON encodable object that will be provided to the client on transfer

maxPlayers?: number

The server max players. If this field is present, a game server with this max players value will be selected or a new game server with this max players value will be created if one does not exist.

preferredServerId?: string

The preferred server to transfer to. If transfering to this server is not possible or it does not match the other requested parameters, a different server will be selected.

region?: string

The region to find or create a game server in. If this field is not present, the best region will be selected based on the players being transfered.

sceneId?: string

The sceneId to transfer the player to. Note that this is based on the scene the server was started with, not it's currently active scene. If no servers are available, a new server with this starting scene will be created.

This parameter is ignored if the gameId being transfered to does not match the calling server gameId.

serverTransferData?: unknown

JSON encodable object that will be provided to the server being joined