// Token: 0x06001A95 RID: 6805 RVA: 0x0007DBF8 File Offset: 0x0007BDF8 public static void SetStartingIfOwner(bool startingState) { Lobby lobby = SteamworksLobbyManager.client.Lobby; if (((lobby != null) ? lobby.CurrentLobbyData : null) == null) { return; } Lobby.LobbyData currentLobbyData = lobby.CurrentLobbyData; if (currentLobbyData == null) { return; } currentLobbyData.SetData("starting", startingState ? "1" : "0"); }
// Token: 0x06001A9F RID: 6815 RVA: 0x0007DDA8 File Offset: 0x0007BFA8 public LobbyData(Lobby.LobbyData lobbyData) { SteamworksLobbyManager.LobbyData.< > c__DisplayClass11_0 CS$ < > 8__locals1; CS$ < > 8__locals1.lobbyDataDictionary = lobbyData.GetAllData(); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadInt | 11_2 ("total_max_players", ref this.totalMaxPlayers, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadInt | 11_2 ("player_count", ref this.totalPlayerCount, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadBool | 11_1 ("qp", ref this.quickplayQueued, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadCSteamID | 11_3 ("server_id", ref this.serverId, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadAddressPortPair | 11_4 ("server_address", ref this.serverAddressPortPair, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadCSteamID | 11_3 ("migration_id", ref this.migrationId, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadBool | 11_1 ("starting", ref this.starting, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadString | 11_0 ("build_id", ref this.buildId, ref CS$ < > 8__locals1); SteamworksLobbyManager.LobbyData.<.ctor > g__ReadNullableDate | 11_5 ("qp_cutoff_time", out this.quickplayCutoffTime, ref CS$ < > 8__locals1); this.shouldConnect = (this.serverId.isValid || this.serverAddressPortPair.isValid); }
public static string OnLobbyGetData(Func <Lobby.LobbyData, string, string> orig, Lobby.LobbyData self, string key) { if (key == "build_id") { #if DEBUG AeonMod.LoggerStatic.LogWarning($"Overwrote GetData('build_id') to return " + GetRealBuildId()); #endif return(GetRealBuildId()); } return(orig(self, key)); }
public static bool OnLobbySetData(Func <Lobby.LobbyData, string, string, bool> orig, Lobby.LobbyData self, string key, string value) { if (key == "build_id") { #if DEBUG AeonMod.LoggerStatic.LogWarning($"Overwrote SetData('build_id', " + GetSteamBuildId() + ")"); #endif value = GetSteamBuildId(); } return(orig(self, key, value)); }