Esempio n. 1
0
 /// <summary>
 /// Handle various cache subscription types.
 /// </summary>
 /// <param name="cache"></param>
 private void HandleSubscribedType(CMsgSOCacheSubscribed.SubscribedType cache)
 {
     switch ((CSOTypes)cache.type_id)
     {
         case CSOTypes.ECON_ITEM:
             HandleEconItemsSnapshot(cache.object_data);
             break;
         case CSOTypes.ECON_GAME_ACCOUNT_CLIENT:
             HandleGameAccountClientSnapshot(cache.object_data[0]);
             break;
         case CSOTypes.LEAGUE_VIEW_PASS:
             HandleLeaguePassesSnapshot(cache.object_data);
             break;
         case CSOTypes.MAP_LOCATION_STATE:
             HandleMapLocationsSnapshot(cache.object_data);
             break;
         case CSOTypes.LOBBY:
             HandleLobbySnapshot(cache.object_data[0]);
             break;
         case CSOTypes.PARTY:
             HandlePartySnapshot(cache.object_data[0]);
             break;
         case CSOTypes.PARTYINVITE:
             HandlePartyInviteSnapshot(cache.object_data[0]);
             break;
         case CSOTypes.LOBBYINVITE:
             HandleLobbyInviteSnapshot(cache.object_data[0]);
             break;
     }
 }
Esempio n. 2
0
 private void HandleSubscribedType(CMsgSOCacheSubscribed.SubscribedType cache)
 {
     if (cache.type_id == (int)CSOTypes.LOBBY)
     {
         HandleLobbySnapshot(cache.object_data[0]);
     }
     else if (cache.type_id == (int)CSOTypes.PARTY)
     {
         HandlePartySnapshot(cache.object_data[0]);
     }
     else if (cache.type_id == (int)CSOTypes.PARTYINVITE)
     {
         HandlePartyInviteSnapshot(cache.object_data[0]);
     }
 }