Beispiel #1
0
        private void GetPlayFabServers()
        {
            var getTitleEntityTokenRequest     = new GetEntityTokenRequest();
            GetEntityTokenRequest tokenRequest = new GetEntityTokenRequest();

            PlayFabAuthenticationAPI.GetEntityToken(tokenRequest, TokenResponseSuccess, Error, null, null);

            ListMultiplayerServersRequest request = new ListMultiplayerServersRequest();

            //request.BuildId = MMOClientInstance.Singleton.PlayFabManager.BuildIdKey;
            //request.Region = MMOClientInstance.Singleton.PlayFabManager.playFabRegion.ToString();

            PlayFabMultiplayerAPI.ListMultiplayerServers(request, GetServerList, Error, null, null);
        }
Beispiel #2
0
    public void GetServers(ServerID identity)
    {
        ShowLoader();

        PlayFabMultiplayerAPI.ListMultiplayerServers(new ListMultiplayerServersRequest {
            Region  = identity.Region,
            BuildId = identity.ServerIdentifier
        },
                                                     result => {
            EnumerateServers(result);
        },
                                                     error => {
            Debug.LogError("ERROR GETTING BUILDS: " + error.GenerateErrorReport());
            HideLoader();
            Inform(error.ErrorMessage);
        });
    }