Exemplo n.º 1
0
 private void ClaimMissionBonusResultHandler(LegionCompanionWrapper.ClaimMissionBonusResultEvent msg)
 {
     PersistentMissionData.UpdateMission(msg.Result.Mission);
     AdventureMapMissionSite[] componentsInChildren = AdventureMapPanel.instance.m_mapViewContentsRT.GetComponentsInChildren <AdventureMapMissionSite>(true);
     foreach (AdventureMapMissionSite adventureMapMissionSite in componentsInChildren)
     {
         if (!adventureMapMissionSite.m_isStackablePreview)
         {
             if (adventureMapMissionSite.GetGarrMissionID() == msg.Result.GarrMissionID)
             {
                 if (!adventureMapMissionSite.gameObject.activeSelf)
                 {
                     adventureMapMissionSite.gameObject.SetActive(true);
                 }
                 adventureMapMissionSite.HandleClaimMissionBonusResult(msg.Result.GarrMissionID, msg.Result.AwardOvermax, msg.Result.Result);
                 break;
             }
         }
     }
 }
Exemplo n.º 2
0
 private void CompleteMissionResultHandler(LegionCompanionWrapper.GarrisonCompleteMissionResultEvent eventArgs)
 {
     PersistentMissionData.UpdateMission(eventArgs.Result.Mission);
     AdventureMapMissionSite[] componentsInChildren = AdventureMapPanel.instance.m_mapViewContentsRT.GetComponentsInChildren <AdventureMapMissionSite>(true);
     foreach (AdventureMapMissionSite adventureMapMissionSite in componentsInChildren)
     {
         if (!adventureMapMissionSite.m_isStackablePreview)
         {
             if (adventureMapMissionSite.GetGarrMissionID() == eventArgs.Result.GarrMissionID)
             {
                 if (!adventureMapMissionSite.gameObject.activeSelf)
                 {
                     adventureMapMissionSite.gameObject.SetActive(true);
                 }
                 adventureMapMissionSite.HandleCompleteMissionResult(eventArgs.Result.GarrMissionID, eventArgs.Result.BonusRollSucceeded);
                 break;
             }
         }
     }
     LegionCompanionWrapper.RequestShipmentTypes((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestShipments((int)GarrisonStatus.GarrisonType);
     LegionCompanionWrapper.RequestFollowerEquipment((int)GarrisonStatus.GarrisonFollowerType);
     LegionCompanionWrapper.RequestGarrisonData((int)GarrisonStatus.GarrisonType);
 }