fBaseXtensions.Game.Hero.Hotbar.ReturnHotbarSkills C# (CSharp) Method

ReturnHotbarSkills() private static method

private static ReturnHotbarSkills ( ) : List
return List
        private static List<HotbarSkill> ReturnHotbarSkills()
        {
            List<HotbarSkill> returnList = new List<HotbarSkill>();
            using (ZetaDia.Memory.AcquireFrame())
            {
                if (ZetaDia.CPlayer.IsValid)
                {
                    foreach (HotbarSlot item in Enum.GetValues(typeof(HotbarSlot)))
                    {
                        if (item == HotbarSlot.Invalid) continue;

                        SNOPower hotbarPower = ZetaDia.CPlayer.GetPowerForSlot(item);
                        if (hotbarPower.Equals(SNOPower.None)) continue;

                        int runeIndex = -1;
                        try
                        {
                            runeIndex = ZetaDia.CPlayer.GetRuneIndexForSlot(item);
                        }
                        catch{}

                        returnList.Add(new HotbarSkill(item, hotbarPower, runeIndex));
                    }
                }
            }

            return returnList;
        }