public int Num(KeyAction item) { if (KeyReader.ActionBarSlotMap.TryGetValue(item.Key, out int slot)) { slot += Stance.RuntimeSlotToActionBar(item, playerReader, slot); return(slot); } return(0); }
// https://wowwiki-archive.fandom.com/wiki/ActionSlot public bool Is(KeyAction item) { if (KeyReader.ActionBarSlotMap.TryGetValue(item.Key, out int slot)) { slot += Stance.RuntimeSlotToActionBar(item, playerReader, slot); int array = slot / 24; return(bits[array].IsBitSet((slot - 1) % 24)); } return(false); }