perf(ui): scope cooldown heartbeat to visible items
This commit is contained in:
parent
f2a015be8e
commit
6b56f4bef2
5 changed files with 132 additions and 3 deletions
|
|
@ -156,6 +156,11 @@ public sealed class Spellbook
|
|||
|
||||
public int LearnedCount => _learnedSpells.Count;
|
||||
public int ActiveCount => _activeById.Count;
|
||||
public bool HasCooldownEnchantments =>
|
||||
_enchantmentOrderByBucket.TryGetValue(
|
||||
CooldownBucket,
|
||||
out List<uint>? order)
|
||||
&& order.Count != 0;
|
||||
|
||||
public bool Knows(uint spellId) => _learnedSpells.ContainsKey(spellId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue