예제 #1
0
 private void OnGameServerChangeRequested(GameServerChangeRequested_t callback)
 {
     if (!Connection.IsConnected)
     {
         //Todo
     }
 }
예제 #2
0
    private static void JoinServerRequest(GameServerChangeRequested_t param)
    {
        if (BoltNetwork.isRunning || SteamClientDSConfig.Server != null)
        {
            return;
        }
        AutoJoinAfterMPInvite autoJoinAfterMPInvite = UnityEngine.Object.FindObjectOfType <AutoJoinAfterMPInvite>();
        CoopSteamNGUI         exists = UnityEngine.Object.FindObjectOfType <CoopSteamNGUI>();

        SteamClientDSConfig.serverAddress = param.m_rgchServer;
        SteamClientDSConfig.password      = SteamDSConfig.PasswordToHash(param.m_rgchPassword);
        if (exists)
        {
            if (CoopLobby.IsInLobby)
            {
                return;
            }
            Debug.Log("todo ?");
        }
        else if (autoJoinAfterMPInvite)
        {
            autoJoinAfterMPInvite.invitedToPassword = param.m_rgchPassword;
            autoJoinAfterMPInvite.SetInvitedToServer(param.m_rgchServer);
        }
    }
예제 #3
0
    void OnGameServerChangeRequested(GameServerChangeRequested_t pCallback)
    {
        Console.WriteLine("[" + GameServerChangeRequested_t.k_iCallback + " - GameServerChangeRequested] - " + pCallback.m_rgchServer + " -- " + pCallback.m_rgchPassword);

        string[] tempSplit = pCallback.m_rgchServer.Split(':');
#if YARGIS
        YargisSteam.ChangeServer(tempSplit[0], tempSplit[1], pCallback.m_rgchPassword);
#endif
    }
예제 #4
0
 void OnGameServerChangeRequested(GameServerChangeRequested_t pCallback)
 {
     Debug.Log("[" + GameServerChangeRequested_t.k_iCallback + " - GameServerChangeRequested] - " + pCallback.m_rgchServer + " -- " + pCallback.m_rgchPassword);
 }
예제 #5
0
 private void OnGameServerChangeRequested(GameServerChangeRequested_t param)
 {
     SteamClientDSConfig.serverAddress = param.m_rgchServer;
     SteamClientDSConfig.password      = param.m_rgchPassword;
     SceneManager.LoadScene("SteamStartSceneDedicatedServer_Client", LoadSceneMode.Single);
 }
예제 #6
0
 // Token: 0x06000960 RID: 2400 RVA: 0x00044FA9 File Offset: 0x000431A9
 private void OnChangeServerRequest(GameServerChangeRequested_t data)
 {
     ZLog.Log("ZSteamMatchmaking got change server request to:" + data.m_rgchServer);
     this.QueueServerJoin(data.m_rgchServer);
 }