#include <real_time_room_config.h>
A data structure containing the data needed to create a RealTimeRoom object.
Summary
Constructors and Destructors |
|
|---|---|
RealTimeRoomConfig(std::shared_ptr< const RealTimeRoomConfigImpl > impl)
Constructs a |
|
RealTimeRoomConfig()
|
|
RealTimeRoomConfig(const RealTimeRoomConfig & copy_from)
Creates a copy of an existing |
|
RealTimeRoomConfig(RealTimeRoomConfig && move_from)
Moves an existing |
Public functions |
|
|---|---|
ExclusiveBitMask() const
|
A bit mask indicating game-specific exclusive roles for the player, such as "attacker" or "defender". |
MaximumAutomatchingPlayers() const
|
The maximum number of auto-matching players to add to the room. |
MinimumAutomatchingPlayers() const
|
The minimum number of auto-matching players to add to the room. |
PlayerIdsToInvite() const
|
The player IDs to invite to the newly created room. |
Valid() const
|
Returns true if this |
Variant() const
|
A developer-specific value used to indicate room type or mode. |
operator=(const RealTimeRoomConfig & copy_from)
|
Assigns this |
operator=(RealTimeRoomConfig && move_from)
|
Assigns this |
Classes |
|
|---|---|
|
gpg:: |
Builds one or more RealTimeRoomConfig objects. |
Public functions
ExclusiveBitMask
int64_t ExclusiveBitMask() const
A bit mask indicating game-specific exclusive roles for the player, such as "attacker" or "defender".
The logical product (AND) of any pairing players must equal zero for auto-match. Can only be called if Valid returns true.
MaximumAutomatchingPlayers
uint32_t MaximumAutomatchingPlayers() const
The maximum number of auto-matching players to add to the room.
Can only be called if Valid returns true.
MinimumAutomatchingPlayers
uint32_t MinimumAutomatchingPlayers() const
The minimum number of auto-matching players to add to the room.
Can only be called if Valid returns true.
PlayerIdsToInvite
const std::vector< std::string > & PlayerIdsToInvite() const
The player IDs to invite to the newly created room.
Can only be called if Valid returns true.
RealTimeRoomConfig
RealTimeRoomConfig( std::shared_ptr< const RealTimeRoomConfigImpl > impl )
Constructs a RealTimeRoomConfig from object a shared_ptr to a RealTimeRoomConfigImpl object.
Intended for internal use by the API.
RealTimeRoomConfig
RealTimeRoomConfig()
Valid
bool Valid() const
Returns true if this RealTimeRoomConfig object is populated with data.
Must return true for the getter functions (PlayerIdsToInvite, MinimumAutoroomingPlayers, etc.) on the RealTimeRoomConfig object to be usable.
Variant
uint32_t Variant() const
A developer-specific value used to indicate room type or mode.
Only players using the same value can room. Can only be called if Valid returns true.