Example #1
0
        private void CheckSkillInput()
        {
            if (IsInputBlocked())
            {
                return;
            }

            foreach (var kvp in _skillKeyBinds)
            {
                if (Input.GetKey(kvp.Key))
                {
                    if (SlottedSkills.TryGetValue(kvp.Value, out BaseSkill skill))
                    {
                        var hitPoint = GetMouseHitPoint(out BaseEntity targetEntity);
                        skill.Cast(targetEntity, hitPoint);

                        foreach (var kvp2 in SlottedSkills)
                        {
                            if (kvp2.Value != skill)
                            {
                                kvp2.Value.Queued = false;
                            }
                        }
                    }
                }
            }
        }
Example #2
0
 public void UnslotSkill(SkillSlot slot)
 {
     SlottedSkills.Remove(slot);
 }