예제 #1
0
        public void OnSkillBtnUp(SkillSlotType skillSlotType, enSkillJoystickMode mode = enSkillJoystickMode.General)
        {
            uint num = 0u;

            if (this.m_iCurTargetEnemyBtnIndex >= 0 && this.m_iCurTargetEnemyBtnIndex < this.m_iCurEnemyPlayerCount && this.m_arrBtnInfo[this.m_iCurTargetEnemyBtnIndex].actorPtr)
            {
                num = this.m_arrBtnInfo[this.m_iCurTargetEnemyBtnIndex].actorPtr.handle.ObjID;
                this.SetEnemyHeroBtnHighlight(this.m_iCurTargetEnemyBtnIndex, false);
                this.m_iLastSkillTargetEnemyBtnIndex = this.m_iCurTargetEnemyBtnIndex;
                this.m_iCurTargetEnemyBtnIndex       = -1;
                this.m_bLastSkillUsed = false;
            }
            Player hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer();

            if (hostPlayer != null && hostPlayer.Captain)
            {
                if (num != 0u)
                {
                    hostPlayer.Captain.handle.SkillControl.RequestUseSkillSlot(skillSlotType, enSkillJoystickMode.EnemyHeroSelect, num);
                    SkillSlot skillSlot;
                    if (hostPlayer.Captain.handle.SkillControl.TryGetSkillSlot(skillSlotType, out skillSlot))
                    {
                        skillSlot.skillIndicator.SetFixedPrefabShow(false);
                        skillSlot.skillIndicator.SetGuildPrefabShow(false);
                        skillSlot.skillIndicator.SetGuildWarnPrefabShow(false);
                        this.m_ShowGuidPrefabSkillSlot = skillSlotType;
                    }
                }
                else
                {
                    hostPlayer.Captain.handle.SkillControl.RequestUseSkillSlot(skillSlotType, mode, num);
                }
            }
        }
예제 #2
0
        public void RequestUseSkillSlot(SkillSlotType slot, enSkillJoystickMode mode, uint objID)
        {
            SkillSlot slot2;

            if (this.TryGetSkillSlot(slot, out slot2))
            {
                slot2.RequestUseSkill(mode, objID);
            }
        }
예제 #3
0
 public void RequestUseSkill(enSkillJoystickMode mode, uint objID)
 {
     if (mode == enSkillJoystickMode.General)
     {
         this.RequestUseSkillGeneralMode();
     }
     else if (mode == enSkillJoystickMode.SelectTarget)
     {
         this.RequestUseSkillSelectMode(objID);
     }
 }
예제 #4
0
        public void HostCancelUseSkillSlot(SkillSlotType slot, enSkillJoystickMode mode)
        {
            SkillSlot slot2;

            if (this.TryGetSkillSlot(slot, out slot2))
            {
                slot2.CancelUseSkill();
                if (mode == enSkillJoystickMode.SelectTarget)
                {
                    MonoSingleton <CameraSystem> .GetInstance().SetFocusActor(base.actorPtr);
                }
                DefaultSkillEventParam param = new DefaultSkillEventParam(slot, 0, base.actorPtr);
                Singleton <GameSkillEventSys> .GetInstance().SendEvent <DefaultSkillEventParam>(GameSkillEventDef.Event_UseCanceled, base.actorPtr, ref param, GameSkillEventChannel.Channel_HostCtrlActor);
            }
        }
예제 #5
0
 public void RequestUseSkill(enSkillJoystickMode mode, uint objID)
 {
     if (mode == enSkillJoystickMode.General)
     {
         this.RequestUseSkillGeneralMode();
     }
     else if (mode == enSkillJoystickMode.SelectTarget || mode == enSkillJoystickMode.MapSelect || mode == enSkillJoystickMode.SelectNextSkillTarget || mode == enSkillJoystickMode.MapSelectOther || mode == enSkillJoystickMode.SelectTarget5)
     {
         this.RequestUseSkillSelectMode(objID);
     }
     else if (mode == enSkillJoystickMode.EnemyHeroSelect)
     {
         this.RequestUseSkillEnemyHeroSelectMode(objID);
     }
 }