Example #1
0
 private void HandleInvasionPOIChanged()
 {
     if (!LegionfallData.HasCurrentInvasionPOI())
     {
         this.m_invasionNotification.gameObject.SetActive(false);
     }
     else
     {
         WrapperAreaPoi currentInvasionPOI = LegionfallData.GetCurrentInvasionPOI();
         this.m_invasionNotification.gameObject.SetActive(true);
         this.m_invasionTitle.text = currentInvasionPOI.Description;
         TimeSpan timeSpan = LegionfallData.GetCurrentInvasionExpirationTime() - GarrisonStatus.CurrentTime();
         timeSpan = ((timeSpan.TotalSeconds <= 0.0) ? TimeSpan.Zero : timeSpan);
         this.m_invasionTimeRemaining.text = timeSpan.GetDurationString(false);
     }
     this.SetActiveMapViewSize();
 }
 public static bool IsHordeAssault(this WrapperAreaPoi areaPoi)
 {
     return(areaPoi.AreaPoiID == 5896 || areaPoi.AreaPoiID == 5966 || areaPoi.AreaPoiID == 5964);
 }
 public static bool IsAllianceAssault(this WrapperAreaPoi areaPoi)
 {
     return(areaPoi.AreaPoiID == 5969 || areaPoi.AreaPoiID == 5973 || areaPoi.AreaPoiID == 5970);
 }