Skip to main content
The initial configuration data used when creating a lobby.

Syntax

Members

maxMemberCount Ā  uint32_t The maximum number of members allowed in the new lobby. This value must be at least PFLobbyMaxMemberCountLowerLimit and no more than PFLobbyMaxMemberCountUpperLimit.

If a client would violate this limit by calling PFMultiplayerJoinLobby() or PFLobbyAddMember, the operation fails asynchronously.
ownerMigrationPolicy Ā  PFLobbyOwnerMigrationPolicy The owner migration policy for the new lobby. When passed to PFMultiplayerCreateAndJoinLobby(), this value cannot be PFLobbyOwnerMigrationPolicy::Server. When passed to PFMultiplayerCreateAndClaimServerLobby(), this value must be PFLobbyOwnerMigrationPolicy::Server. accessPolicy Ā  PFLobbyAccessPolicy The access policy for the new lobby. searchPropertyCount Ā  uint32_t The number of initial search properties for the new lobby. searchPropertyKeys Ā  const char* const*
array of size searchPropertyCount
The keys of the initial search properties for the new lobby. Search properties are visible to non-members of the lobby as metadata, which can be used to filter and sort lobby search results.

Search properties must be of the form string_keyN or number_keyN where ā€œNā€ is a number between 1 and PFLobbyMaxSearchPropertyCount. e.g., string_key1, number_key14, etc.
searchPropertyValues Ā  const char* const*
array of size searchPropertyCount
The values of the initial search properties for the new lobby. Search properties are visible to non-members of the lobby as metadata, which can be used to filter and sort lobby search results. lobbyPropertyCount Ā  uint32_t The number of initial lobby properties for the new lobby. lobbyPropertyKeys Ā  const char* const*
array of size lobbyPropertyCount
The keys of the initial lobby properties for the new lobby. Lobby properties are only visible to members of the lobby. lobbyPropertyValues Ā  const char* const*
array of size lobbyPropertyCount
The values of the initial lobby properties for the new lobby. Lobby properties are only visible to members of the lobby. restrictInvitesToLobbyOwner Ā  bool The policy for whether only the lobby owner can send invites to join the lobby. When true, only the lobby owner can send invites. When false, any member can send invites. Can only be true for client-owned lobbies.

Requirements

Header: PFLobby.h

See also

PFLobby members
Last modified on August 10, 2026