// public StanceInfo(int _skill, int _potencyIdx) // { // m_StanceSkill = _skill; // m_StancePotency = _potencyIdx; // } // // public StanceInfo(int _skill, int _lv, int _potencyIdx) // { // m_StanceSkill = _skill; // m_SkillLevel = _lv; // m_StancePotency = _potencyIdx; // } public StanceInfo(body1_SC_SKILL_LIST _list) { #if _STANCE m_StanceSkill = _list.nStanceSkill; m_SkillLevel = _list.nStanceSkillLevel; m_StancePotency = _list.nStancePotencyIdx; #endif }
void InitStance(body1_SC_SKILL_LIST _list) { m_StanceInfo = new StanceInfo(_list); StanceProcess(); }
IEnumerator Wait_Init_CR(body1_SC_SKILL_LIST _skillList) { while(true) { yield return null; if(AsQuickSlotManager.Instance != null && AsEntityManager.Instance.UserEntity != null) { SkillBook.Instance.SetCurrentSkill(_skillList); break; } } }
public void SetCurrentSkill(body1_SC_SKILL_LIST _list) { // eCLASS __class = AsUserInfo.Instance.GetCurrentUserEntity().GetProperty<eCLASS>(eComponentProperty.CLASS); for(int i=0; i<_list.nSkillCnt; ++i) { SkillView curSlot = new SkillView(_list.body[i].nSkillTableIdx, _list.body[i].nSkillLevel); // curSlot.SetSkillBookRecordByClass(__class); Tbl_Skill_Record record = AsTableManager.Instance.GetTbl_Skill_Record(curSlot.nSkillTableIdx); if(record.Skill_Type == eSKILL_TYPE.Base) continue; m_dicCurSkill.Add(curSlot.nSkillTableIdx, curSlot); SortCurSkill(); switch(record.Skill_Type) { case eSKILL_TYPE.Active: case eSKILL_TYPE.Case: case eSKILL_TYPE.Charge: case eSKILL_TYPE.Target: case eSKILL_TYPE.SlotBase: case eSKILL_TYPE.Stance: case eSKILL_TYPE.TargetCharge: m_dicNotSetting.Add(curSlot.nSkillTableIdx, curSlot); SortNotSetting(); break; } AddSkillByType(curSlot, false); } SetNewSkillInit(); // begin kij /*for(int i=m_RegisterBeginIdx; i<m_RegisterBeginIdx + m_RegisterSize; ++i) { if(m_dicNotSetting.ContainsKey(m_QuickSlot[i].nValue) == true) m_dicNotSetting.Remove(m_QuickSlot[i].nValue); }*/ //ResetDicNotSettingData(); // end kij InitStance(_list); }
void SkillList_Receive(byte[] _packet) { body1_SC_SKILL_LIST skillList = new body1_SC_SKILL_LIST(); skillList.PacketBytesToClass(_packet); StartCoroutine(Wait_Init_CR(skillList)); // SkillBook.Instance.SetCurrentSkill(skillList); }