gpg:: TurnBasedMatchConfig
#include <turn_based_match_config.h>
資料結構,包含建立 TurnBasedMatch
所需的資料。
摘要
建構函式和解構函式 |
|
---|---|
TurnBasedMatchConfig(std::shared_ptr< const TurnBasedMatchConfigImpl > impl)
|
|
TurnBasedMatchConfig()
|
|
TurnBasedMatchConfig(const TurnBasedMatchConfig & copy_from)
建立現有「
TurnBasedMatchConfig 」的副本。 |
|
TurnBasedMatchConfig(TurnBasedMatchConfig && move_from)
移動現有的
TurnBasedMatchConfig 。 |
公開函式 |
|
---|---|
ExclusiveBitMask() const
|
int64_t
表示玩家專屬遊戲專屬角色的位元遮罩,例如「攻擊者」或「防禦」
|
MaximumAutomatchingPlayers() const
|
uint32_t
加入對戰的自動配對玩家人數上限。
|
MinimumAutomatchingPlayers() const
|
uint32_t
要加入對戰的自動配對玩家數量下限。
|
PlayerIdsToInvite() const
|
const std::vector< std::string > &
要邀請加入新建對戰的玩家 ID。
|
Valid() const
|
bool
如果這個
TurnBasedMatchConfig 填入資料,則傳回 true。 |
Variant() const
|
uint32_t
用來表示比對類型或模式的開發人員專屬值。
|
operator=(const TurnBasedMatchConfig & copy_from)
|
透過複製另一個項目來指派此
TurnBasedMatchConfig 。 |
operator=(TurnBasedMatchConfig && move_from)
|
透過移動另一個項目來指派
TurnBasedMatchConfig 。 |
類別 |
|
---|---|
gpg:: |
建立一或多個 TurnBasedMatchConfig 物件。 |
公開函式
ExclusiveBitMask
int64_t ExclusiveBitMask() const
表示玩家專屬遊戲專屬角色的位元遮罩,例如「攻擊者」或「防禦」
配對玩家的邏輯產品 (AND) 必須等於零,才能自動配對。只有在 Valid 傳回 true 時才能呼叫。
MaximumAutomatchingPlayers
uint32_t MaximumAutomatchingPlayers() const
加入對戰的自動配對玩家人數上限。
只有在 Valid 傳回 true 時才能呼叫。
MinimumAutomatchingPlayers
uint32_t MinimumAutomatchingPlayers() const
要加入對戰的自動配對玩家數量下限。
只有在 Valid 傳回 true 時才能呼叫。
PlayerIdsToInvite
const std::vector< std::string > & PlayerIdsToInvite() const
要邀請加入新建對戰的玩家 ID。
只有在 Valid 傳回 true 時才能呼叫。
TurnBasedMatchConfig
TurnBasedMatchConfig( std::shared_ptr< const TurnBasedMatchConfigImpl > impl )
從 shared_ptr
建構 TurnBasedMatchConfig
至 TurnBasedMatchConfigImpl
。
適用於 API 的內部使用。
TurnBasedMatchConfig
TurnBasedMatchConfig()
TurnBasedMatchConfig
TurnBasedMatchConfig( const TurnBasedMatchConfig & copy_from )
建立現有「TurnBasedMatchConfig
」的副本。
TurnBasedMatchConfig
TurnBasedMatchConfig( TurnBasedMatchConfig && move_from )
移動現有的 TurnBasedMatchConfig
。
有效
bool Valid() const
如果這個 TurnBasedMatchConfig
填入資料,則傳回 true。
對於 TurnBasedMatchConfig
物件的 getter 函式 (PlayerIdsToInvite
、MinimumAutomatchingPlayers
等) 必須傳回 true,才能使用。
operator=
TurnBasedMatchConfig & operator=( const TurnBasedMatchConfig & copy_from )
透過複製另一個項目來指派此TurnBasedMatchConfig
。
operator=
TurnBasedMatchConfig & operator=( TurnBasedMatchConfig && move_from )
透過移動另一個項目來指派TurnBasedMatchConfig
。