gpg:: RealTimeRoom
#include <real_time_room.h>
실시간 멀티플레이어 방의 현재 상태가 포함된 데이터 구조입니다.
요약
생성자 및 소멸자 |
|
---|---|
RealTimeRoom()
|
|
RealTimeRoom(std::shared_ptr< const RealTimeRoomImpl > impl)
|
|
RealTimeRoom(const RealTimeRoom & copy_from)
기존
RealTimeRoom 객체의 사본을 생성합니다. |
|
RealTimeRoom(RealTimeRoom && move_from)
기존
RealTimeRoom 객체를 이동합니다. |
공개 함수 |
|
---|---|
AutomatchWaitEstimate() const
|
이 회의실의 자동 게임 슬롯을 채우는 데 걸리는 시간에 대한 서버 생성 추정치입니다.
|
CreatingParticipant() const
|
이 방을 만든 참가자를 반환합니다.
|
CreationTime() const
|
std::chrono::milliseconds
이
RealTimeRoom 객체가 생성된 시간을 반환합니다 (Unix 에포크 이후 밀리초로 표현됨). |
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
이 방을 만든 참가자를 반환합니다.
이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
CreationTime
std::chrono::milliseconds CreationTime() const
이 RealTimeRoom
객체가 생성된 시간을 반환합니다 (Unix 에포크 이후 밀리초로 표현됨).
이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
ID
const std::string & Id() const
이 RealTimeRoom
객체를 고유하게 식별하는 ID를 반환합니다.
나중에 이 회의실을 가져오려면 RealTimeRoom::FetchRoom
와 함께 이 ID를 사용하세요.
이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
참여자
std::vector< MultiplayerParticipant > Participants() const
이 방에 있는 모든 참가자의 벡터입니다.
이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
RealTimeRoom
RealTimeRoom()
RealTimeRoom
RealTimeRoom( std::shared_ptr< const RealTimeRoomImpl > impl )
shared_ptr
에서 RealTimeRoomImpl
객체로 RealTimeRoom
객체를 구성합니다.
API에서 내부적으로 사용하기 위한 용도입니다.
RemainingAutomatchingSlots
uint32_t RemainingAutomatchingSlots() const
방에 사용 가능한 자동 게임 슬롯 수를 반환합니다.
이 숫자는 방이 생성된 자동 게임 슬롯 수에서 이미 자동 매칭을 통해 추가된 참가자 수를 뺀 값과 같습니다. 이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
상태
RealTimeRoomStatus Status() const
방의 상태를 반환합니다.
상태에 따라 채팅방에서 수행할 수 있는 작업이 결정됩니다. 이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
유효
bool Valid() const
이 RealTimeRoom
객체에 데이터가 채워져 있으면 true를 반환합니다.
RealTimeRoom
객체 (Id
, CreationTime
등)의 getter 함수를 사용하려면 true를 반환해야 합니다.
변형
uint32_t Variant() const
게임에서 다양한 게임 모드를 식별하는 데 사용할 수 있는 게임별 변형 식별자를 반환합니다.
이 함수를 사용하려면 Valid가 true를 반환해야 합니다.
operator=
RealTimeRoom & operator=( const RealTimeRoom & copy_from )
다른 객체에서 복사하여 이 RealTimeRoom
객체를 할당합니다.
operator=
RealTimeRoom & operator=( RealTimeRoom && move_from )
다른 객체를 이동하여 이 RealTimeRoom
객체를 할당합니다.