public void Reset() { Initialized = false; PlayerReader.Reset(); UIMapId.Reset(); ActionBarCostReader.Reset(); SpellBookReader.Reset(); TalentReader.Reset(); CreatureHistory.Reset(); Initialized = true; }
public void AddonRefresh() { Refresh(); CreatureHistory.Update(PlayerReader.TargetGuid, PlayerReader.TargetHealthPercentage); BagReader.Read(); EquipmentReader.Read(); ActionBarCostReader.Read(); GossipReader.Read(); SpellBookReader.Read(); TalentReader.Read(); LevelTracker.Update(); if ((DateTime.Now - lastFrontendUpdate).TotalMilliseconds >= FrontendUpdateIntervalMs) { AddonDataChanged?.Invoke(this, EventArgs.Empty); lastFrontendUpdate = DateTime.Now; } }