gpg::RealTimeRoomConfig

#include <real_time_room_config.h>

RealTimeRoom 객체를 만드는 데 필요한 데이터가 포함된 데이터 구조입니다.

요약

생성자 및 소멸자

RealTimeRoomConfig(std::shared_ptr< const RealTimeRoomConfigImpl > impl)
객체 shared_ptr에서 RealTimeRoomConfigImpl 객체에 대한 RealTimeRoomConfig를 구성합니다.
RealTimeRoomConfig()
RealTimeRoomConfig(const RealTimeRoomConfig & copy_from)
기존 RealTimeRoomConfig 객체의 사본을 만듭니다.
RealTimeRoomConfig(RealTimeRoomConfig && move_from)
기존 RealTimeRoomConfig 객체를 이동합니다.

공개 함수

ExclusiveBitMask() const
int64_t
플레이어의 게임별 독점 역할(예: '공격자' 또는 '수비자')을 나타내는 비트 마스크입니다.
MaximumAutomatchingPlayers() const
uint32_t
방에 추가할 자동 게임 플레이어의 최대 수입니다.
MinimumAutomatchingPlayers() const
uint32_t
방에 추가할 자동 게임 플레이어의 최소 수입니다.
PlayerIdsToInvite() const
const std::vector< std::string > &
새로 생성된 방에 초대할 플레이어 ID입니다.
Valid() const
bool
RealTimeRoomConfig 객체가 데이터로 채워지면 true를 반환합니다.
Variant() const
uint32_t
방 유형 또는 모드를 나타내는 데 사용되는 개발자별 값입니다.
operator=(const RealTimeRoomConfig & copy_from)
다른 객체에서 복사하여 이 RealTimeRoomConfig 객체를 할당합니다.
operator=(RealTimeRoomConfig && move_from)
다른 객체를 이 객체로 이동하여 이 RealTimeRoomConfig 객체를 할당합니다.

클래스

gpg::RealTimeRoomConfig::Builder

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

공개 함수

ExclusiveBitMask

int64_t ExclusiveBitMask() const 

플레이어의 게임별 독점 역할(예: '공격자' 또는 '수비자')을 나타내는 비트 마스크입니다.

자동 매칭에서 페어링 플레이어의 논리 곱 (AND)은 0이어야 합니다. 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를 반환하는 경우에만 호출할 수 있습니다.

RealTimeRoomConfig

 RealTimeRoomConfig(
  std::shared_ptr< const RealTimeRoomConfigImpl > impl
)

객체 shared_ptr에서 RealTimeRoomConfigImpl 객체에 대한 RealTimeRoomConfig를 구성합니다.

API의 내부용으로 사용됩니다.

RealTimeRoomConfig

 RealTimeRoomConfig()

RealTimeRoomConfig

 RealTimeRoomConfig(
  const RealTimeRoomConfig & copy_from
)

기존 RealTimeRoomConfig 객체의 사본을 만듭니다.

RealTimeRoomConfig

 RealTimeRoomConfig(
  RealTimeRoomConfig && move_from
)

기존 RealTimeRoomConfig 객체를 이동합니다.

유효

bool Valid() const 

RealTimeRoomConfig 객체가 데이터로 채워지면 true를 반환합니다.

사용할 수 있도록 RealTimeRoomConfig 객체의 getter 함수 (PlayerIdsToInvite, MinimumAutoroomingPlayers 등)에서 true를 반환해야 합니다.

대안

uint32_t Variant() const 

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

같은 값을 사용하는 플레이어만 방을 만들 수 있습니다. Valid가 true를 반환하는 경우에만 호출할 수 있습니다.

연산자=

RealTimeRoomConfig & operator=(
  const RealTimeRoomConfig & copy_from
)

다른 객체에서 복사하여 이 RealTimeRoomConfig 객체를 할당합니다.

연산자=

RealTimeRoomConfig & operator=(
  RealTimeRoomConfig && move_from
)

다른 객체를 이 객체로 이동하여 이 RealTimeRoomConfig 객체를 할당합니다.