Ejemplo n.º 1
0
	public Msg_NpcDeBuff( body_SC_NPC_DEBUFF _deBuff)
	{
		m_MessageType = eMessageType.NPC_DEBUFF;

		npcIdx_ = _deBuff.nNpcIdx;

		skillTableIdx_ = _deBuff.nSkillTableIdx;
		skillLevelTableIdx_ = _deBuff.nSkillLevelTableIdx;
		skillLevel_ = _deBuff.nSkillLevel;
		chargeStep_ = _deBuff.nChargeStep;
		potencyIdx_ = _deBuff.nPotencyIdx;
		type_ = _deBuff.eType;

		serverData = _deBuff;
	}
Ejemplo n.º 2
0
	public void DeleteBuff( body_SC_NPC_DEBUFF _data )
	{
		DeleteBuffData( _data );
		ResetUiBuffSlot();
	}
Ejemplo n.º 3
0
    /*
     * Packet Define: SC_NPC_DEBUFF
     * 설명 : Npc 버프가 삭제 될때
    */
    private void DelNpcBuff(byte[] _packet)
    {
        Debug.Log("DelNpcBuff");

        body_SC_NPC_DEBUFF data = new body_SC_NPC_DEBUFF();
        data.PacketBytesToClass(_packet);

		AsNpcEntity npcEntity = AsEntityManager.Instance.GetNpcEntityBySessionId( data.nNpcIdx );
		if( null != npcEntity )
		{
			npcEntity.HandleMessage(new Msg_NpcDeBuff(data));
		}
    }
Ejemplo n.º 4
0
	protected void DeleteBuffData( body_SC_NPC_DEBUFF data )
	{
		foreach( BuffBaseData buffdata in m_BuffDataList )
        {
			if( buffdata.GetSkillIdx() == data.nSkillTableIdx && 
				buffdata.GetPotencyIdx() == data.nPotencyIdx )
            {				
				m_BuffDataList.Remove( buffdata );
				return;
			}
		}
	}