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); }
public static IEnumerable <Spell> Slot(this IEnumerable <Spell> spells, SpellSlotIndex spellSlot) { return(spells.Where <Spell>(spell => spell.SpellSlot == spellSlot)); }
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); }