Пример #1
0
        public void RequestMultiplayerServer(string PlayFabId)
        {
            RequestMultiplayerServerRequest request = new RequestMultiplayerServerRequest();

            request.BuildId = PlayFabServerInstance.singleton.BuildIdKey;
            //TODO dont statically assign preferred regions
            request.PreferredRegions = new List <string> {
                "EastUs", "WestUs"
            };
            request.SessionId = Guid.NewGuid().ToString();
            PlayFabMultiplayerAPI.RequestMultiplayerServer(request, MultiplayerServerResponseSuccess, Error, null, null);
        }
Пример #2
0
    private void requestMultiplayerServer()
    {
        RequestMultiplayerServerRequest requestData = new RequestMultiplayerServerRequest();

        requestData.BuildId          = "1ba80645-10ff-492d-93e1-b31f9e56c1d6";
        requestData.SessionId        = "c03b9f6a-a392-4e72-82c5-655ed6be4395";
        requestData.PreferredRegions = new List <AzureRegion>()
        {
            AzureRegion.NorthEurope
        };
        PlayFabMultiplayerAPI.RequestMultiplayerServer(requestData, OnRequestMultiplayerServer, OnRequestMultiplayerServerError);
    }
Пример #3
0
    private void RequestMultiplayerServer()
    {
        Debug.Log("[ClientStartUp].RequestMultiplayerServer");
        RequestMultiplayerServerRequest requestData = new RequestMultiplayerServerRequest();

        requestData.BuildId          = configuration.buildId;
        requestData.SessionId        = System.Guid.NewGuid().ToString();
        requestData.PreferredRegions = new List <AzureRegion>()
        {
            AzureRegion.EastUs
        };
        PlayFabMultiplayerAPI.RequestMultiplayerServer(requestData, OnRequestMultiplayerServer, OnRequestMultiplayerServerError);
    }
Пример #4
0
    private void RequestFabServerInfo()
    {
        H.klog1($"Requesting Fab server info", this.name);
        RequestMultiplayerServerRequest req = new RequestMultiplayerServerRequest();

        req.BuildId          = buildid;
        req.SessionId        = System.Guid.NewGuid().ToString();
        req.PreferredRegions = new List <string>()
        {
            "EastUs"
        };
        PlayFabMultiplayerAPI.RequestMultiplayerServer(req, ResRequestMultiplayer, ErrRequestMultiplayer);
    }
Пример #5
0
    private void RequestMultiplayerServer()
    {
        RequestMultiplayerServerRequest requestData = new RequestMultiplayerServerRequest();

        requestData.BuildId          = settings.GetComponent <Settings>().buildId;
        requestData.PreferredRegions = new List <string>()
        {
            "NorthEurope"
        };
        requestData.SessionId = settings.GetComponent <Settings>().sessionId;
        if (requestData.SessionId.Equals(""))
        {
            requestData.SessionId = System.Guid.NewGuid().ToString();
        }

        PlayFabMultiplayerAPI.RequestMultiplayerServer(requestData, OnRequestMultiplayerServer, OnRequestMultiplayerServerError);
    }