gpg::RealTimeRoom

#include <real_time_room.h>

실시간 멀티플레이어 방의 현재 상태가 포함된 데이터 구조입니다.

요약

생성자 및 소멸자

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

공개 함수

AutomatchWaitEstimate() const
이 회의실의 자동 게임 슬롯을 채우는 데 걸리는 시간을 서버에서 생성한 추정치입니다.
CreatingParticipant() const
이 방을 만든 참가자를 반환합니다.
CreationTime() const
std::chrono::milliseconds
RealTimeRoom 객체가 생성된 시간을 반환합니다 (유닉스 에포크 이후 밀리초로 표현됨).
Description() const
std::string
서버에서 생성한 방 상태 요약을 반환합니다.
Id() const
const std::string &
RealTimeRoom 객체를 고유하게 식별하는 ID를 반환합니다.
Participants() const
std::vector< MultiplayerParticipant >
이 방에 있는 모든 참여자의 벡터입니다.
RemainingAutomatchingSlots() const
uint32_t
방에 대해 사용 가능한 자동 일치 슬롯 수를 반환합니다.
Status() const
방의 상태를 반환합니다.
Valid() const
bool
RealTimeRoom 객체가 데이터로 채워지면 true를 반환합니다.
Variant() const
uint32_t
게임에서 다양한 게임 모드를 식별하는 데 사용할 수 있는 게임별 변형 식별자를 반환합니다.
operator=(const RealTimeRoom & copy_from)
다른 객체에서 복사하여 이 RealTimeRoom 객체를 할당합니다.
operator=(RealTimeRoom && move_from)
다른 객체를 이 객체로 이동하여 이 RealTimeRoom 객체를 할당합니다.

공개 함수

AutomatchWaitEstimate

Timeout AutomatchWaitEstimate() const 

이 회의실의 자동 게임 슬롯을 채우는 데 걸리는 시간을 서버에서 생성한 추정치입니다.

CreatingParticipant

MultiplayerParticipant CreatingParticipant() const 

이 방을 만든 참가자를 반환합니다.

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

CreationTime

std::chrono::milliseconds CreationTime() const 

RealTimeRoom 객체가 생성된 시간을 반환합니다 (유닉스 에포크 이후 밀리초로 표현됨).

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

설명

std::string Description() const 

서버에서 생성한 방 상태 요약을 반환합니다.

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

ID

const std::string & Id() const 

RealTimeRoom 객체를 고유하게 식별하는 ID를 반환합니다.

나중에 이 방을 검색하려면 이 ID를 RealTimeRoom::FetchRoom와 함께 사용합니다.

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

참여자

std::vector< MultiplayerParticipant > Participants() const 

이 방에 있는 모든 참여자의 벡터입니다.

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

RealTimeRoom

 RealTimeRoom()

RealTimeRoom

 RealTimeRoom(
  std::shared_ptr< const RealTimeRoomImpl > impl
)

shared_ptr에서 RealTimeRoomImpl 객체로 RealTimeRoom 객체를 구성합니다.

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

RealTimeRoom

 RealTimeRoom(
  const RealTimeRoom & copy_from
)

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

RealTimeRoom

 RealTimeRoom(
  RealTimeRoom && move_from
)

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

RemainingAutomatchingSlots

uint32_t RemainingAutomatchingSlots() const 

방에 대해 사용 가능한 자동 일치 슬롯 수를 반환합니다.

이 숫자는 방이 생성된 자동 게임 슬롯의 수에서 자동 게임을 통해 이미 추가된 참가자 수를 뺀 값과 같습니다. 이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

상태

RealTimeRoomStatus Status() const 

방의 상태를 반환합니다.

상태에 따라 채팅방에서 할 수 있는 작업이 결정됩니다. 이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

유효

bool Valid() const 

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

RealTimeRoom 객체 (Id, CreationTime 등)의 getter 함수를 사용하려면 true를 반환해야 합니다.

대안

uint32_t Variant() const 

게임에서 다양한 게임 모드를 식별하는 데 사용할 수 있는 게임별 변형 식별자를 반환합니다.

이 함수를 사용하려면 유효한 항목이 true를 반환해야 합니다.

연산자=

RealTimeRoom & operator=(
  const RealTimeRoom & copy_from
)

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

연산자=

RealTimeRoom & operator=(
  RealTimeRoom && move_from
)

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