Example #1
0
    /// <summary>
    /// 离开房间
    /// </summary>
    /// <param name="pbSeat"></param>
    public void ExitRoom(PDK_LEAVE proto)
    {
        SeatEntity seat = GetSeatByPlayerId(proto.playerId);

        if (seat == null)
        {
            return;
        }
        seat.PlayerId   = 0;
        seat.isLandlord = false;
        seat.Nickname   = string.Empty;
        seat.Status     = SeatEntity.SeatStatus.Idle;
        seat.Latitude   = 0f;
        seat.Longitude  = 0f;
        seat.Gold       = 0;
        seat.Avatar     = string.Empty;

        SendSeatInfoChangeNotify(seat);

        AppDebug.Log(seat.Nickname + "离开房间");
    }
Example #2
0
 public QuitRoomCommand(PDK_LEAVE data)
 {
     m_DataEntity = data;
 }