Beispiel #1
0
 public Action5003(ActionGetter actionGetter)
     : base((short)5003, actionGetter)
 {
     m_RequestPacket  = null;
     m_ResponsePacket = null;
     m_UserId         = 0;
 }
Beispiel #2
0
        public override void Process()
        {
            RCGiveUpBattle response = new RCGiveUpBattle();

            byte[] buffer = CustomActionDispatcher.GeneratePackageStream((int)ActionType, ProtoBufUtils.Serialize(response));
            m_Session.SendAsync(buffer, 0, buffer.Length);
            RoomManager rm = RoomManager.GetInstance(m_Room.Id);

            rm.PlayerGaveUp(m_UserId);
        }