コード例 #1
0
        internal async Task <LobbyCreated_t?> CreateLobby(LobbyType eLobbyType, int cMaxMembers)
        {
            var returnValue = _CreateLobby(Self, eLobbyType, cMaxMembers);

            return(await LobbyCreated_t.GetResultAsync(returnValue));
        }
コード例 #2
0
 private static void LobbyCreated(LobbyCreated_t param)
 {
     Debug.Log(string.Concat(new object[]
     {
         "LobbyCreated param.m_eResult=",
         param.m_eResult,
         ", lobbyId=",
         param.m_ulSteamIDLobby
     }));
     try
     {
         if (param.m_eResult == EResult.k_EResultOK)
         {
             CSteamID cSteamID = new CSteamID(param.m_ulSteamIDLobby);
             if (cSteamID.IsValid())
             {
                 CoopLobbyInfo coopLobbyInfo = new CoopLobbyInfo(param.m_ulSteamIDLobby);
                 coopLobbyInfo.IsOwner = true;
                 coopLobbyInfo.Name = CoopLobbyManager.createValues.Name;
                 coopLobbyInfo.MemberLimit = CoopLobbyManager.createValues.MemberLimit;
                 CoopLobbyManager.LobbyMatchList_Result = new List<CoopLobbyInfo>();
                 CoopLobbyManager.LobbyMatchList_Result.Add(coopLobbyInfo);
                 CoopLobby.SetActive(coopLobbyInfo);
                 if (TitleScreen.StartGameSetup.Type == TitleScreen.GameSetup.InitTypes.Continue)
                 {
                     SaveSlotUtils.LoadHostGameGUID();
                 }
                 if (CoopLobbyManager.createCallback != null)
                 {
                     try
                     {
                         CoopLobbyManager.createCallback();
                     }
                     catch (Exception var_1_E2)
                     {
                     }
                 }
                 goto IL_10C;
             }
         }
         if (CoopLobbyManager.createFailCallback != null)
         {
             try
             {
                 CoopLobbyManager.createFailCallback();
             }
             catch (Exception var_2_106)
             {
             }
         }
         IL_10C:;
     }
     finally
     {
         CoopLobbyManager.createValues = null;
         CoopLobbyManager.createCallback = null;
         CoopLobbyManager.createFailCallback = null;
     }
 }
コード例 #3
0
 internal async Task <LobbyCreated_t?> CreateLobby(LobbyType eLobbyType, int cMaxMembers)
 {
     return(await LobbyCreated_t.GetResultAsync(_CreateLobby( Self, eLobbyType, cMaxMembers )));
 }
コード例 #4
0
        internal async Task <LobbyCreated_t?> CreateLobby(LobbyType eLobbyType, int cMaxMembers)
        {
            LobbyCreated_t?resultAsync = await LobbyCreated_t.GetResultAsync(this._CreateLobby(this.Self, eLobbyType, cMaxMembers));

            return(resultAsync);
        }
コード例 #5
0
 private void OnLobbyCreated(LobbyCreated_t result, bool failure)
 {
     if (failure)
     {
         return;
     }
     SteamFriends.SetRichPresence("status", "Playing online.");
 }
コード例 #6
0
	void OnLobbyCreated(LobbyCreated_t pCallback, bool bIOFailure) {
		Debug.Log("[" + LobbyCreated_t.k_iCallback + " - LobbyCreated] - " + pCallback.m_eResult + " -- " + pCallback.m_ulSteamIDLobby);
		m_Lobby = (CSteamID)pCallback.m_ulSteamIDLobby;
	}