Example #1
0
	public void StanceChanged(body_SC_CHAR_SKILL_STANCE _stance)
	{
		m_StanceInfo = new StanceInfo(_stance);
		StanceProcess();
		
		AsCommonSender.EndSkillUseProcess();
		
		Tbl_SkillLevel_Record lv = AsTableManager.Instance.GetTbl_SkillLevel_Record( m_StanceInfo.SkillLevel, m_StanceInfo.StanceSkill);
		if( lv != null)
			CoolTimeGroupMgr.Instance.SetCoolTimeGroup( m_StanceInfo.StanceSkill, lv.CoolTime);
		else
			Debug.LogError("SkillBook::StanceChanged: m_StanceInfo.SkillLevel = " + m_StanceInfo.SkillLevel);
	}
Example #2
0
	public Msg_OtherCharSkillStance( body_SC_CHAR_SKILL_STANCE _body)
	{
		m_MessageType = eMessageType.OTHER_CHAR_SKILL_STANCE;

		sessionIdx_ = _body.nSessionIdx;
		charUniqKey_ = _body.nCharUniqKey;

		stanceSkill_ = _body.nStanceSkill;
		stanceLevel_ = _body.nStanceSkillLevel;
		stancePotencyIdx_ = _body.nStancePotencyIdx;

		QuestMessageBroadCaster.BrocastQuest(QuestMessages.QM_USE_SKILL, new AchUseSkill(_body.nStanceSkill, 1));
	}
Example #3
0
	public StanceInfo(body_SC_CHAR_SKILL_STANCE _stance)
	{
#if _STANCE
		m_StanceSkill = _stance.nStanceSkill;
		m_SkillLevel = _stance.nStanceSkillLevel;
		m_StancePotency = _stance.nStancePotencyIdx;
#endif
	}
Example #4
0
	void CharSkillStance(byte[] _packet)
	{
		body_SC_CHAR_SKILL_STANCE stance = new body_SC_CHAR_SKILL_STANCE();
		stance.PacketBytesToClass(_packet);
		
		AsEntityManager.Instance.DispatchMessageByUniqueKey(stance.nCharUniqKey, new Msg_OtherCharSkillStance(stance));
		
		if(stance.nCharUniqKey == AsUserInfo.Instance.GetCurrentUserEntity().UniqueId)
		{
			SkillBook.Instance.StanceChanged(stance);
		}
	}