public static bool IsReadyToCast(this FightingObjectView instance, SpellSlotIndex slot)
        {
            var eventHandler = new CastSpellEventHandler(instance.GetEventHandler <auy>());

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

            return(false);
        }
示例#2
0
 public static IEnumerable <Spell> Slot(this IEnumerable <Spell> spells, SpellSlotIndex spellSlot)
 {
     return(spells.Where <Spell>(spell => spell.SpellSlot == spellSlot));
 }
示例#3
0
 public Spell(LocalPlayerCharacterView owner, adu internalSpell, SpellSlotIndex slot)
 {
     _owner         = owner;
     _internalSpell = internalSpell;
     _slot          = slot;
 }
 public static void CastAt(this LocalPlayerCharacterView instance, SpellSlotIndex slot, Vector3 target)
 {
     _startCastInternalPosition.Invoke(instance.InputHandler, new object[] { (byte)slot, target.c() });
 }
 public static void CastOn(this LocalPlayerCharacterView instance, SpellSlotIndex slot, FightingObjectView target)
 {
     _startCastInternalTarget.Invoke(instance.InputHandler, new object[] { (byte)slot, target });
 }
 public static void CastOnSelf(this LocalPlayerCharacterView instance, SpellSlotIndex slot)
 {
     instance.CastOn(slot, instance);
 }