PFLobbyOwnerMigrationPolicy

The available policies the lobby service can use to migrate lobby ownership between members.

Syntax

enum class PFLobbyOwnerMigrationPolicy  : uint32_t  
{  
    Automatic = 0,  
    Manual = 1,  
    None = 2,  
    Server = 3,  
}  

Constants

Constant Description
Automatic Once the lobby owner is disconnected, a new owner is chosen at random from the set of connected members.
Manual Once the lobby owner is disconnected, any member may elect themselves the new owner.

Until a new owner is chosen, PFLobbyGetOwner will return a null owner.
None At any point, any member may elect themselves the owner of the lobby, regardless of the state of the current owner.

If the current owner leaves, PFLobbyGetOwner will return a null owner until a new owner elects themselves.
Server The server is the owner and owner migration is not possible.

Remarks

Some migration policies trigger based on the lobby owner's connection status. A member is considered disconnected when their PFLobbyMemberConnectionStatus value changes from PFLobbyMemberConnectionStatus::Connected to PFLobbyMemberConnectionStatus::NotConnected.

Requirements

Header: PFLobby.h

See also

PFLobby members
PFLobbyMemberConnectionStatus