Ejemplo n.º 1
0
        public bool IsReadyToCast(CharacterSpellSlot slot)
        {
            //NOTE: GetEventHandler Generic param. 0 is internal type of CastSpellEventHandler
            CastSpellEventHandler eventHandler = GetEventHandler <awp>();

            if (eventHandler && eventHandler.IsReady((byte)slot))
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        public static bool IsReadyToCast(this FightingObject obj, CharacterSpellSlot slot)
        {
            //NOTE: GetEventHandler Generic param. 0 is internal type of CastSpellEventHandler
            CastSpellEventHandler eventHandler = obj.GetEventHandler <ayt>();

            if (eventHandler && eventHandler.IsReady((byte)slot))
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 3
0
 public static void CastAt(this LocalInputHandler instance, CharacterSpellSlot slot, Vector3 target) => _startCastInternalPosition.Invoke(instance, new object[] { (byte)slot, target.c() });
Ejemplo n.º 4
0
 public static void CastOn(this LocalInputHandler instance, CharacterSpellSlot slot, FightingObjectView target) => _startCastInternalTarget.Invoke(instance, new object[] { (byte)slot, target });
 public static void CastAt(this LocalPlayerCharacterView instance, CharacterSpellSlot slot, Vector3 target) => instance.InputHandler.CastAt(slot, target);
 public static void CastOn(this LocalPlayerCharacterView instance, CharacterSpellSlot slot, FightingObjectView target) => instance.InputHandler.CastOn(slot, target);
 public static void CastOnSelf(this LocalPlayerCharacterView instance, CharacterSpellSlot slot) => instance.InputHandler.CastOn(slot, instance);
Ejemplo n.º 8
0
 public static Albion.Common.GameData.CharacterSpellSlot ToInternal(this CharacterSpellSlot instance)
 {
     return((Albion.Common.GameData.CharacterSpellSlot)instance);
 }
Ejemplo n.º 9
0
 public static IEnumerable <SpellSlot> Slot(this IEnumerable <SpellSlot> spells, CharacterSpellSlot spellSlot)
 => spells.Where(spell => spell.Slot == spellSlot);