Fired when the server begins shutting down.
You can yield for up to 30 minutes to perform shutdown logic. You can also yield to ensure an in-progress match is completed.
If true, players are automatically transfered into a new server when the server shuts down.
We try to transfer all players to the same server so they stay together.
Creates a new server and returns a server id which can be used to transfer players to the new server.
Optional config: AirshipServerConfigThe configuration the server should start with. If not provided, the server will use the defaults provided during deployment.
The id of the new server. Undefined if the server was not able to be created.
Transfers a group of players to the provided game. A server in the default scene will be selected, or a new one will be created.
The players to transfer, either userIds or Player objects
The gameId to transfer the players to
Optional config: AirshipGameTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a group of players to the provided server. The server can be in any scene, but must be part of the current servers game.
The server to transfer the players to
Optional config: AirshipServerTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a player to the provided game. A server in the default scene will be selected, or a new one will be created.
The player to transfer, either userId or Player object
The gameId to transfer the player to
Optional config: AirshipGameTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
Transfers a player to the provided server. The server can be in any scene, but must be part of the current servers game.
The player to transfer, either userId or Player object
The server to transfer the player to
Optional config: AirshipServerTransferConfigThe configuration to be used for this transfer AirshipGameTransferConfig
The transfer service allows you to move players between servers and create new servers.