gpg::RealTimeRoomConfig::Builder

#include <real_time_room_config_builder.h>

RealTimeRoomConfig 객체를 하나 이상 빌드합니다.

요약

생성자 및 소멸자

Builder()

공개 함수

AddAllPlayersToInvite(const std::vector< std::string > & player_ids)
여러 플레이어를 방에 초대할 수 있도록 플레이어 목록에 추가합니다.
AddPlayerToInvite(const std::string & player_id)
방에 초대할 플레이어를 플레이어 목록에 추가합니다.
Create() const
RealTimeRoomConfig 객체를 만듭니다.
PopulateFromPlayerSelectUIResponse(const RealTimeMultiplayerManager::PlayerSelectUIResponse & response)
RealTimeMultiplayerManager::PlayerSelectUIResponse 메서드로 얻은 값을 채웁니다.
SetExclusiveBitMask(uint64_t exclusive_bit_mask)
플레이어의 배타적인 역할을 나타내는 비트 마스크.
SetMaximumAutomatchingPlayers(uint32_t maximum_automatching_players)
방에 참여할 수 있는 자동 게임 플레이어의 최대 수입니다.
SetMinimumAutomatchingPlayers(uint32_t minimum_automatching_players)
방에 참여할 수 있는 자동 게임 플레이어의 최소 수입니다.
SetVariant(uint32_t variant)
방 유형 또는 모드를 나타내는 데 사용되는 개발자별 값입니다.

공개 함수

AddAllPlayersToInvite

Builder & AddAllPlayersToInvite(
  const std::vector< std::string > & player_ids
)

여러 플레이어를 방에 초대할 수 있도록 플레이어 목록에 추가합니다.

기본적으로 플레이어가 추가되지 않습니다.

AddPlayerToInvite

Builder & AddPlayerToInvite(
  const std::string & player_id
)

방에 초대할 플레이어를 플레이어 목록에 추가합니다.

기본적으로 방에 추가된 플레이어가 없습니다. 플레이어가 추가될 때까지 빌더는 방을 만들 수 없습니다.

Builder

 Builder()

만들기

RealTimeRoomConfig Create() const 

RealTimeRoomConfig 객체를 만듭니다.

PopulateFromPlayerSelectUIResponse

Builder & PopulateFromPlayerSelectUIResponse(
  const RealTimeMultiplayerManager::PlayerSelectUIResponse & response
)

RealTimeMultiplayerManager::PlayerSelectUIResponse 메서드로 얻은 값을 채웁니다.

이 작업은 변형 또는 전용 비트 마스크를 채우지 않습니다.

SetExclusiveBitMask

Builder & SetExclusiveBitMask(
  uint64_t exclusive_bit_mask
)

플레이어의 배타적인 역할을 나타내는 비트 마스크.

(예: 한 플레이어는 공격자, 다른 플레이어는 방어자) 자동 매칭에 성공하려면 페어링된 플레이어의 비트 마스크의 논리 곱 (AND)이 0이어야 합니다. 기본값은 0입니다.

SetMaximumAutomatchingPlayers

Builder & SetMaximumAutomatchingPlayers(
  uint32_t maximum_automatching_players
)

방에 참여할 수 있는 자동 게임 플레이어의 최대 수입니다.

지정하지 않은 경우 기본값은 자동 게임 플레이어의 최소 수와 같은 값입니다.

SetMinimumAutomatchingPlayers

Builder & SetMinimumAutomatchingPlayers(
  uint32_t minimum_automatching_players
)

방에 참여할 수 있는 자동 게임 플레이어의 최소 수입니다.

지정하지 않으면 기본값은 0입니다. 자동 매칭 플레이어 또는 플레이어 ID를 하나 이상 추가해야 합니다.

SetVariant

Builder & SetVariant(
  uint32_t variant
)

방 유형 또는 모드를 나타내는 데 사용되는 개발자별 값입니다.

같은 변형을 사용하는 플레이어만 자동 게임을 할 수 있습니다. 지정하지 않으면 기본값은 -1입니다.