Exemple #1
0
 // Token: 0x06001B2C RID: 6956 RVA: 0x0007F47C File Offset: 0x0007D67C
 private void UpdateGroupID()
 {
     if (this.hostId != CSteamID.nil)
     {
         this.SetGroupId(this.hostId);
         if (!(this.groupSizeField is SteamworksRichPresenceManager.SteamPlayerGroupSizeFieldGame))
         {
             SteamworksRichPresenceManager.SteamPlayerGroupSizeField steamPlayerGroupSizeField = this.groupSizeField;
             if (steamPlayerGroupSizeField != null)
             {
                 steamPlayerGroupSizeField.Uninstall();
             }
             this.groupSizeField = new SteamworksRichPresenceManager.SteamPlayerGroupSizeFieldGame();
             this.groupSizeField.Install();
             return;
         }
     }
     else
     {
         this.SetGroupId(this.lobbyId);
         if (!(this.groupSizeField is SteamworksRichPresenceManager.SteamPlayerGroupSizeFieldLobby))
         {
             SteamworksRichPresenceManager.SteamPlayerGroupSizeField steamPlayerGroupSizeField2 = this.groupSizeField;
             if (steamPlayerGroupSizeField2 != null)
             {
                 steamPlayerGroupSizeField2.Uninstall();
             }
             this.groupSizeField = new SteamworksRichPresenceManager.SteamPlayerGroupSizeFieldLobby();
             this.groupSizeField.Install();
         }
     }
 }
Exemple #2
0
 // Token: 0x06001B2E RID: 6958 RVA: 0x0007F584 File Offset: 0x0007D784
 protected override void OnUninstall()
 {
     GameNetworkManager.onClientConnectGlobal    -= this.OnClientConnectGlobal;
     GameNetworkManager.onClientDisconnectGlobal -= this.OnClientDisconnectGlobal;
     GameNetworkManager.onStartServerGlobal      -= this.OnStartServerGlobal;
     GameNetworkManager.onStopServerGlobal       -= this.OnStopServerGlobal;
     SteamworksLobbyManager.onLobbyChanged       -= this.OnLobbyChanged;
     SteamworksRichPresenceManager.SteamPlayerGroupSizeField steamPlayerGroupSizeField = this.groupSizeField;
     if (steamPlayerGroupSizeField != null)
     {
         steamPlayerGroupSizeField.Uninstall();
     }
     this.groupSizeField = null;
     base.OnUninstall();
 }