語法
成員
maxMemberCount uint32_t
新大廳中允許的最大成員數目。
此值必須至少為 PFLobbyMaxMemberCountLowerLimit,且不得超過 PFLobbyMaxMemberCountUpperLimit。如果用戶端呼叫 PFMultiplayerJoinLobby() 或 PFLobbyAddMember 會違反此限制,作業將以非同步方式失敗。
ownerMigrationPolicy PFLobbyOwnerMigrationPolicy
新大廳的擁有者移轉原則。
傳遞給 PFMultiplayerCreateAndJoinLobby() 時,此值不能是 PFLobbyOwnerMigrationPolicy::Server。傳遞給 PFMultiplayerCreateAndClaimServerLobby() 時,此值必須是 PFLobbyOwnerMigrationPolicy::Server。
accessPolicy PFLobbyAccessPolicy
新大廳的存取原則。
searchPropertyCount uint32_t
新大廳的初始搜尋屬性數目。
searchPropertyKeys const char* const*大小為
searchPropertyCount 的陣列
新大廳之初始搜尋屬性的索引鍵。
搜尋屬性會以中繼資料的形式對大廳的非成員顯示,可用於篩選和排序大廳搜尋結果。 搜尋屬性的格式必須為 string_keyN 或 number_keyN,其中 “N” 是介於 1 和
PFLobbyMaxSearchPropertyCount 之間的數字。例如 string_key1、number_key14 等。 searchPropertyValues const char* const*大小為
searchPropertyCount 的陣列
新大廳之初始搜尋屬性的值。
搜尋屬性會以中繼資料的形式對大廳的非成員顯示,可用於篩選和排序大廳搜尋結果。
lobbyPropertyCount uint32_t
新大廳的初始大廳屬性數目。
lobbyPropertyKeys const char* const*大小為
lobbyPropertyCount 的陣列
新大廳之初始大廳屬性的索引鍵。
大廳屬性只有大廳的成員才能看到。
lobbyPropertyValues const char* const*大小為
lobbyPropertyCount 的陣列
新大廳之初始大廳屬性的值。
大廳屬性只有大廳的成員才能看到。
restrictInvitesToLobbyOwner bool
是否只有大廳擁有者可以傳送加入大廳邀請的原則。
為 true 時,只有大廳擁有者可以傳送邀請。為 false 時,任何成員都可以傳送邀請。只有用戶端擁有的大廳才能為 true。
