संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
gpg::RealTimeRoomConfig::Builder
#include <real_time_room_config_builder.h>
एक या उससे ज़्यादा RealTimeRoomConfig ऑब्जेक्ट बनाता है.
खास जानकारी
कंस्ट्रक्टर और डिस्ट्रक्टर
|
Builder()
|
सार्वजनिक फ़ंक्शन
AddAllPlayersToInvite
Builder & AddAllPlayersToInvite(
const std::vector< std::string > & player_ids
)
रूम में शामिल होने का न्योता देने के लिए, खिलाड़ियों की सूची में एक से ज़्यादा खिलाड़ी जोड़ता है.
डिफ़ॉल्ट रूप से, कोई भी प्लेयर नहीं जोड़ा जाता.
AddPlayerToInvite
Builder & AddPlayerToInvite(
const std::string & player_id
)
रूम में शामिल होने का न्योता देने के लिए, खिलाड़ी को खिलाड़ियों की सूची में जोड़ता है.
डिफ़ॉल्ट रूप से, चैट रूम में किसी खिलाड़ी को नहीं जोड़ा जाता. जब तक खिलाड़ियों को नहीं जोड़ा जाता, तब तक बिल्डर रूम नहीं बना सकता.
निर्माता
Builder()
SetExclusiveBitMask
Builder & SetExclusiveBitMask(
uint64_t exclusive_bit_mask
)
बिट मास्क, जो खिलाड़ियों के लिए खास भूमिकाओं को दिखाता है.
उदाहरण के लिए, एक खिलाड़ी हमलावर के तौर पर और दूसरा डिफ़ेंडर के तौर पर.) ऑटो-मैचिंग सफल होने के लिए ज़रूरी है कि जोड़े गए किसी भी प्लेयर के बिट मास्क का लॉजिकल प्रॉडक्ट (AND) 0 हो. डिफ़ॉल्ट तौर पर, यह वैल्यू 0 पर सेट होती है.
SetMaximumAutomatchingPlayers
Builder & SetMaximumAutomatchingPlayers(
uint32_t maximum_automatching_players
)
अपने-आप मैच होने वाले खिलाड़ियों की ज़्यादा से ज़्यादा संख्या, जो रूम में शामिल हो सकते हैं.
कोई वैल्यू सेट नहीं करने पर, डिफ़ॉल्ट तौर पर यह वैल्यू अपने-आप मेल खाने वाले प्लेयर की कम से कम संख्या के बराबर होती है.
SetMinimumAutomatchingPlayers
Builder & SetMinimumAutomatchingPlayers(
uint32_t minimum_automatching_players
)
अपने-आप मैच होने वाले खिलाड़ियों की कम से कम संख्या, जो रूम में शामिल हो सकते हैं.
कोई जानकारी न होने पर, डिफ़ॉल्ट तौर पर 0 पर सेट होती है. अपने-आप मेल खाने वाला कम से कम एक प्लेयर या प्लेयर आईडी जोड़ना ज़रूरी है.
SetVariant
Builder & SetVariant(
uint32_t variant
)
डेवलपर के लिए खास वैल्यू, जिसका इस्तेमाल रूम टाइप या मोड के बारे में बताने के लिए किया जाता है.
सिर्फ़ एक जैसे वैरिएंट का इस्तेमाल करने वाले खिलाड़ी ही ऑटो-मैच कर सकते हैं. कोई जानकारी न होने पर, डिफ़ॉल्ट तौर पर -1 होता है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# gpg::RealTimeRoomConfig::Builder Class Reference\n\ngpg::RealTimeRoomConfig::Builder\n================================\n\n`#include \u003creal_time_room_config_builder.h\u003e`\n\nBuilds one or more [RealTimeRoomConfig](/games/services/cpp/api/class/gpg/real-time-room-config#classgpg_1_1_real_time_room_config) objects.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Builder](#classgpg_1_1_real_time_room_config_1_1_builder_1a1be34a5a5ebb01fad6c89c15a21719f3)`()` ||\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AddAllPlayersToInvite](#classgpg_1_1_real_time_room_config_1_1_builder_1a43b1185b2c1526e98d10180950495861)`(const std::vector\u003c std::string \u003e & player_ids)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` Adds multiple players to the list of players to invite to the room. |\n| [AddPlayerToInvite](#classgpg_1_1_real_time_room_config_1_1_builder_1ab123863aaedade956b13e239a8d215b0)`(const std::string & player_id)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` Adds a player to the list of players to invite to the room. |\n| [Create](#classgpg_1_1_real_time_room_config_1_1_builder_1a634bd57a053e150e82361689f117ca99)`() const ` | [RealTimeRoomConfig](/games/services/cpp/api/class/gpg/real-time-room-config#classgpg_1_1_real_time_room_config) Creates a [RealTimeRoomConfig](/games/services/cpp/api/class/gpg/real-time-room-config#classgpg_1_1_real_time_room_config) object. |\n| [PopulateFromPlayerSelectUIResponse](#classgpg_1_1_real_time_room_config_1_1_builder_1a0dce94002e629e3ab54a27f7c7eb8601)`(const `[RealTimeMultiplayerManager::PlayerSelectUIResponse](/games/services/cpp/api/class/gpg/real-time-multiplayer-manager#classgpg_1_1_real_time_multiplayer_manager_1a623d805ce50075af4f64be1669cddb97)` & response)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` Populates values obtained by the [RealTimeMultiplayerManager::PlayerSelectUIResponse](/games/services/cpp/api/class/gpg/real-time-multiplayer-manager#classgpg_1_1_real_time_multiplayer_manager_1a623d805ce50075af4f64be1669cddb97) method. |\n| [SetExclusiveBitMask](#classgpg_1_1_real_time_room_config_1_1_builder_1a5bd043c523d2222650b1583a1358eb88)`(uint64_t exclusive_bit_mask)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` A bit mask indicating exclusive roles for players. |\n| [SetMaximumAutomatchingPlayers](#classgpg_1_1_real_time_room_config_1_1_builder_1ab9567e3ef0f8a5acaa53f9694c2f7a32)`(uint32_t maximum_automatching_players)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` The maximum number of auto-matched players who can join the room. |\n| [SetMinimumAutomatchingPlayers](#classgpg_1_1_real_time_room_config_1_1_builder_1aeddf466906825a20ee5d4b1607c97533)`(uint32_t minimum_automatching_players)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` The minimum number of auto-matched players who can join the room. |\n| [SetVariant](#classgpg_1_1_real_time_room_config_1_1_builder_1a77da9257679543f56158aecffeafc144)`(uint32_t variant)` | [Builder](/games/services/cpp/api/class/gpg/real-time-room-config/builder#classgpg_1_1_real_time_room_config_1_1_builder)` &` A developer-specific value used to indicate room type or mode. |\n\nPublic functions\n----------------\n\n### AddAllPlayersToInvite\n\n```c++\nBuilder & AddAllPlayersToInvite(\n const std::vector\u003c std::string \u003e & player_ids\n)\n``` \nAdds multiple players to the list of players to invite to the room.\n\nBy default, no players are added. \n\n### AddPlayerToInvite\n\n```c++\nBuilder & AddPlayerToInvite(\n const std::string & player_id\n)\n``` \nAdds a player to the list of players to invite to the room.\n\nBy default, no players are added to the room. The builder cannot create a room until players are added. \n\n### Builder\n\n```c++\n Builder()\n``` \n\n### Create\n\n```c++\nRealTimeRoomConfig Create() const \n``` \nCreates a [RealTimeRoomConfig](/games/services/cpp/api/class/gpg/real-time-room-config#classgpg_1_1_real_time_room_config) object. \n\n### PopulateFromPlayerSelectUIResponse\n\n```c++\nBuilder & PopulateFromPlayerSelectUIResponse(\n const RealTimeMultiplayerManager::PlayerSelectUIResponse & response\n)\n``` \nPopulates values obtained by the [RealTimeMultiplayerManager::PlayerSelectUIResponse](/games/services/cpp/api/class/gpg/real-time-multiplayer-manager#classgpg_1_1_real_time_multiplayer_manager_1a623d805ce50075af4f64be1669cddb97) method.\n\nNote that this does not populate the variant or the exclusive bit mask. \n\n### SetExclusiveBitMask\n\n```c++\nBuilder & SetExclusiveBitMask(\n uint64_t exclusive_bit_mask\n)\n``` \nA bit mask indicating exclusive roles for players.\n\n(For example, one player as attacker, the other as defender.) Successful auto-matching requires that the logical product (AND) of the bit mask of any paired players equals 0. Defaults to 0. \n\n### SetMaximumAutomatchingPlayers\n\n```c++\nBuilder & SetMaximumAutomatchingPlayers(\n uint32_t maximum_automatching_players\n)\n``` \nThe maximum number of auto-matched players who can join the room.\n\nLeft unspecified, defaults to a value equal to the minimum number of auto-matching players. \n\n### SetMinimumAutomatchingPlayers\n\n```c++\nBuilder & SetMinimumAutomatchingPlayers(\n uint32_t minimum_automatching_players\n)\n``` \nThe minimum number of auto-matched players who can join the room.\n\nDefaults to 0 when left unspecified. At least one auto-matching player or player id must be added. \n\n### SetVariant\n\n```c++\nBuilder & SetVariant(\n uint32_t variant\n)\n``` \nA developer-specific value used to indicate room type or mode.\n\nOnly players using the same variant can auto-match. Defaults to -1 when left unspecified."]]