game-common / pragma.fleet / DefaultFleetPlugin / selectServerPool /

selectServerPool #

open suspend override fun selectServerPool(gameServerVersion: <ERROR CLASS>, gameServerZone: <ERROR CLASS>, ext: ExtAllocateGameServer): ServerPool

Determine what server pool should be used when allocating game servers for the given game allocation request details. The ServerPool.serverPoolId is used to differentiate the queues of capacity allocation requests.

Used by

  • FleetService: Executed when processing a game allocation request from the GameInstanceService.

Parameters #

gameServerVersion

The requested game server version for the game allocation.

gameServerZone

The requested game server zone for the game allocation.

ext

A custom data payload for the game allocation.