コード例 #1
0
        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 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);
        }
コード例 #3
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);
        }