コード例 #1
0
 private void OnLobbyDataUpdate(object lobbyID, NetTransport.LobbyDisplayInfo dispInfo, bool error)
 {
     dispInfo.FeaturesMask &= 3758096383u;
     dispInfo.FeaturesMask &= 4294967263u;
     if (error)
     {
         informationBox.ClearDisplay();
     }
     else
     {
         informationBox.UpdateDisplay(dispInfo);
     }
 }
コード例 #2
0
 private void OnLobbyDataUpdate(object lobbyID, NetTransport.LobbyDisplayInfo dispInfo, bool error)
 {
     if (lobbyID == null)
     {
         return;
     }
     for (int i = 0; i < items.Count; i++)
     {
         if (!items[i].isSameLobbyID(lobbyID))
         {
             continue;
         }
         if (!error)
         {
             items[i].setDisplayInfo(ref dispInfo);
         }
         if (!(selectedMenuItem != null) || !items[i].Equals(selectedMenuItem.boundData))
         {
             continue;
         }
         if (error)
         {
             levelInformationBox.ClearDisplay();
             selectedMenuItem.boundData = null;
             LevelInformationBoxEnabled(enabled: false);
             selectedMenuItem.DataInvalid();
         }
         else if ((dispInfo.FeaturesMask & 0x20) != 0)
         {
             if ((dispInfo.Flags & 0x20) != 0)
             {
                 LevelInformationBoxEnabled(enabled: true);
                 levelInformationBox.UpdateDisplay(dispInfo);
                 selectedMenuItem.DataRefreshed(items[i]);
             }
             else
             {
                 levelInformationBox.ClearDisplay();
                 LevelInformationBoxEnabled(enabled: false);
                 selectedMenuItem.DataInvalid();
             }
         }
         else
         {
             levelInformationBox.UpdateDisplay(dispInfo);
             selectedMenuItem.DataRefreshed(items[i]);
         }
     }
 }
コード例 #3
0
 private void OnLobbyDataUpdate(object lobbyID, NetTransport.LobbyDisplayInfo dispInfo, bool error)
 {
     if (error)
     {
         dispInfo.InitBlank();
     }
     else
     {
         dispInfo.LevelID   = NetGame.instance.currentLevel;
         dispInfo.LevelType = NetGame.instance.currentLevelType;
     }
     dispInfo.FeaturesMask &= 4294967263u;
     if (dispInfo.FeaturesMask == 0)
     {
         informationBox.ClearDisplay();
     }
     else
     {
         informationBox.UpdateDisplay(dispInfo);
     }
 }