Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Setting allow_automatch as false for ShowPlayerSelectUI function won't disable automatch. #5

Closed
jompu opened this issue Jul 16, 2015 · 0 comments
Labels
obsolete The associated code sample is now obsolete

Comments

@jompu
Copy link

jompu commented Jul 16, 2015

If allow_automatch is set to false, I can still invite "Auto-Pick" players for my game. This same setting is working as should(with the same code) in Android, but not in iOS. I don't want players to have an option to invite random players.

I'm using Play Games C++ SDK Version 1.4.1.

Example of code I'm using to open invite UI:

gpgService_->RealTimeMultiplayer().ShowPlayerSelectUI(
            minCountPlayers_,
            maxCountPlayers_,
            false,
            [this, variant](gpg::RealTimeMultiplayerManager::PlayerSelectUIResponse const &response) {
                if (gpg::IsSuccess(response.status)) {
                    // Create room
                    gpg::RealTimeRoomConfig config = gpg::RealTimeRoomConfig::Builder()
                        .PopulateFromPlayerSelectUIResponse(response)
                        .SetVariant(variant)
                        .Create();
                    auto result = gpgService_->RealTimeMultiplayer().CreateRealTimeRoomBlocking(config, this);

                    if (gpg::IsSuccess(result.status)) {
                        realtimeRoom_ = result.room;
                        GpgOnShowWaitingRoom();
                    }
                    else {
                        GpgOnFailedShowWaitingRoom(result);
                    }
                }
                else {
                        SetFailedRace();
                }
            }
        );
@dturner dturner added the obsolete The associated code sample is now obsolete label Sep 10, 2019
@dturner dturner closed this as completed Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
obsolete The associated code sample is now obsolete
Projects
None yet
Development

No branches or pull requests

2 participants