Ejemplo n.º 1
0
        private void OnLeaveRoom(LeaveRoomEvent e)
        {
            var token = e.Token;

            _playerInfoManager.RemovePlayerInfo(token);

            _logger.InfoFormat("Remove Player Info {0}", token);
        }
Ejemplo n.º 2
0
        private void SendLeaveRoom(LeaveRoomEvent e)
        {
            _logger.InfoFormat("Leave Room Player Id {0}", e.PlayerId);
            var msg = SingleGameOverMessage.Allocate();

            msg.HallRoomId     = e.PlayerId;
            msg.Players        = e.Player;
            msg.ShowReportFlag = e.Player.Id != 0L ? 1 : 0;
            SendAndReleaseMessage(RpcMessageType.SingleGameOver, msg);
        }