internal async Task <LobbyCreated_t?> CreateLobby(LobbyType eLobbyType, int cMaxMembers) { var returnValue = _CreateLobby(Self, eLobbyType, cMaxMembers); return(await LobbyCreated_t.GetResultAsync(returnValue)); }
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; } }
internal async Task <LobbyCreated_t?> CreateLobby(LobbyType eLobbyType, int cMaxMembers) { return(await LobbyCreated_t.GetResultAsync(_CreateLobby( Self, eLobbyType, cMaxMembers ))); }
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); }
private void OnLobbyCreated(LobbyCreated_t result, bool failure) { if (failure) { return; } SteamFriends.SetRichPresence("status", "Playing online."); }
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; }