Example #1
0
 private static void RouteSkill(SkillCooldown skillCooldown)
 {
     if (skillCooldown.Cooldown == 0)
     {
         CooldownWindowViewModel.Instance.Remove(skillCooldown.Skill);
     }
     else
     {
         CooldownWindowViewModel.Instance.AddOrRefresh(skillCooldown);
     }
     App.BaseDispatcher.Invoke(() => SkillStarted?.Invoke());
 }
 private static void RouteSkill(Cooldown skillCooldown)
 {
     if (skillCooldown.Duration == 0)
     {
         skillCooldown.Dispose();
         WindowManager.CooldownWindow.VM.Remove(skillCooldown.Skill);
     }
     else
     {
         WindowManager.CooldownWindow.VM.AddOrRefresh(skillCooldown);
     }
     App.BaseDispatcher.BeginInvoke(new Action(() => SkillStarted?.Invoke()));
 }