private void WorldQuestUpdateHandler(LegionCompanionWrapper.RequestWorldQuestsResultEvent eventArgs)
 {
     WorldQuestData.ClearData();
     foreach (WrapperWorldQuest worldQuest in eventArgs.Quests)
     {
         bool flag = GarrisonWrapper.DoesMapIDSupportWorldQuests(worldQuest.StartLocationMapID);
         if (flag)
         {
             WorldQuestData.AddWorldQuest(worldQuest);
             for (int i = 0; i < worldQuest.Items.Count; i++)
             {
                 ItemStatCache.instance.GetItemStats(worldQuest.Items[i].RecordID, worldQuest.Items[i].ItemContext, worldQuest.Items[i].ItemInstance);
             }
         }
     }
 }
Beispiel #2
0
 public void MobileLoggedIn()
 {
     PersistentArmamentData.ClearData();
     PersistentBountyData.ClearData();
     PersistentEquipmentData.ClearData();
     PersistentFollowerData.ClearData();
     PersistentFollowerData.ClearPreMissionFollowerData();
     PersistentMissionData.ClearData();
     PersistentShipmentData.ClearData();
     PersistentTalentData.ClearData();
     MissionDataCache.ClearData();
     WorldQuestData.ClearData();
     ItemStatCache.instance.ClearItemStats();
     GarrisonStatus.Initialized = false;
     MobileClient.SetCommunityID(Singleton <CharacterData> .Instance.CommunityID);
     MobileClient.Initialize();
     Singleton <GarrisonWrapper> .Instance.MobileRequestData();
 }