Beispiel #1
0
 public override bool GetUrlElement()
 {
     m_UserId        = actionGetter.GetSession().UserId;
     m_RoomId        = (actionGetter.GetSession().User as RoomSessionUser).RoomId;
     m_RequestPacket = ProtoBufUtils.Deserialize <CREntitySkillRushing>((byte[])actionGetter.GetMessage());
     return(true);
 }
Beispiel #2
0
 public Action5107(ActionGetter actionGetter)
     : base((short)5107, actionGetter)
 {
     m_RequestPacket  = null;
     m_ResponsePacket = null;
     m_UserId         = 0;
 }
Beispiel #3
0
        public override bool Verify(Message message)
        {
            m_Request           = message.Packet as CREntitySkillRushing;
            m_Response.SerialId = m_Request.SerialId;
            int playerId   = message.Session.UserId;
            var originHero = m_Room.Players[playerId].Heros.Find(t => t.EntityId == m_Request.EntityId);

            if (originHero == null || originHero.HP <= 0)
            {
                return(false);
            }
            return(true);
        }