public override bool GetUrlElement() { m_UserId = actionGetter.GetSession().UserId; m_RoomId = (actionGetter.GetSession().User as RoomSessionUser).RoomId; m_RequestPacket = ProtoBufUtils.Deserialize <CREntityPerformSkillFF>((byte[])actionGetter.GetMessage()); return(true); }
public Action5106(ActionGetter actionGetter) : base((short)5106, actionGetter) { m_RequestPacket = null; m_ResponsePacket = null; m_UserId = 0; }
public override bool Verify(Message message) { m_Request = message.Packet as CREntityPerformSkillFF; m_Response.SerialId = m_Request.SerialId; var originHero = m_Room.Players[m_UserId].Heros.Find(t => t.EntityId == m_Request.EntityId); if (originHero == null || originHero.HP <= 0) { return(false); } return(true); }