gpg::
  #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ゲーム固有のバリアント ID を返します。ゲームで使用して、さまざまなゲームモードを識別できます。 | 
| operator=(const RealTimeRoom & copy_from) | 別の  RealTimeRoomオブジェクトからコピーして、このRealTimeRoomオブジェクトを割り当てます。 | 
| operator=(RealTimeRoom && move_from) | |
パブリック関数
AutomatchWaitEstimate
Timeout AutomatchWaitEstimate() const
この部屋の自動マッチング スロットを埋めるのにかかる時間の推定値(サーバーが生成)。
CreatingParticipant
MultiplayerParticipant CreatingParticipant() const
このルームを作成した参加者を返します。
この関数を使用できるようにするには、Valid が true を返す必要があります。
CreationTime
std::chrono::milliseconds CreationTime() const
この RealTimeRoom オブジェクトが作成された時刻(Unix エポックからの経過ミリ秒数)を返します。
この関数を使用できるようにするには、Valid が true を返す必要があります。
説明
std::string Description() const
部屋の状態に関するサーバー生成の概要を返します。
この関数を使用できるようにするには、Valid が true を返す必要があります。
ID
const std::string & Id() const
この RealTimeRoom オブジェクトを一意に識別する ID を返します。
この部屋を後で取得するには、この ID を RealTimeRoom::FetchRoom で使用します。
この関数を使用できるようにするには、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 など)のゲッター関数を使用できるようにするには、true を返す必要があります。
バリアント
uint32_t Variant() const
ゲーム固有のバリアント ID を返します。ゲームで使用して、さまざまなゲームモードを識別できます。
この関数を使用できるようにするには、Valid が true を返す必要があります。
operator=
RealTimeRoom & operator=( const RealTimeRoom & copy_from )
別の RealTimeRoom オブジェクトからコピーして、この RealTimeRoom オブジェクトを割り当てます。
operator=
RealTimeRoom & operator=( RealTimeRoom && move_from )
別の RealTimeRoom オブジェクトをこの RealTimeRoom オブジェクトに移動して、この RealTimeRoom オブジェクトを割り当てます。
