// Token: 0x06003B03 RID: 15107 RVA: 0x0010D488 File Offset: 0x0010B688
        public static ProBattleRoomPlayer BattleRoomPlayerToPbBattleRoomPlayer(BattleRoomPlayer player)
        {
            ProBattleRoomPlayer proBattleRoomPlayer = new ProBattleRoomPlayer
            {
                UserId             = player.UserId,
                SessionId          = player.SessionId,
                ChannelId          = player.ChannelId,
                Name               = player.Name,
                HeadIcon           = player.HeadIcon,
                Level              = player.Level,
                PlayerBattleStatus = (int)player.PlayerBattleStatus,
                Offline            = player.IsOffline
            };

            if (player.RTPVPInfo != null)
            {
                proBattleRoomPlayer.RealTimePVPInfo = new ProRealTimePVPUserInfo
                {
                    Dan        = player.RTPVPInfo.Dan,
                    LocalRank  = player.RTPVPInfo.LocalRank,
                    GlobalRank = player.RTPVPInfo.GlobalRank,
                    Score      = player.RTPVPInfo.Score,
                    UserId     = player.RTPVPInfo.UserId
                };
            }
            foreach (TrainingTech trainingTech in player.Techs)
            {
                proBattleRoomPlayer.Techs.Add(trainingTech.ToPro());
            }
            return(proBattleRoomPlayer);
        }
        // Token: 0x06003B04 RID: 15108 RVA: 0x0010D5C8 File Offset: 0x0010B7C8
        public static BattleRoomPlayer PbBattleRoomPlayerToBattleRoomPlayer(ProBattleRoomPlayer pbPlayer)
        {
            BattleRoomPlayer battleRoomPlayer = new BattleRoomPlayer
            {
                UserId             = pbPlayer.UserId,
                SessionId          = pbPlayer.SessionId,
                ChannelId          = pbPlayer.ChannelId,
                Name               = pbPlayer.Name,
                HeadIcon           = pbPlayer.HeadIcon,
                Level              = pbPlayer.Level,
                PlayerBattleStatus = (PlayerBattleStatus)pbPlayer.PlayerBattleStatus,
                IsOffline          = pbPlayer.Offline
            };

            foreach (ProTrainingTech tech in pbPlayer.Techs)
            {
                battleRoomPlayer.Techs.Add(TrainingTech.FromDataSection(tech));
            }
            if (pbPlayer.RealTimePVPInfo != null)
            {
                battleRoomPlayer.RTPVPInfo = new RealTimePVPInfo
                {
                    Dan        = pbPlayer.RealTimePVPInfo.Dan,
                    LocalRank  = pbPlayer.RealTimePVPInfo.LocalRank,
                    GlobalRank = pbPlayer.RealTimePVPInfo.GlobalRank,
                    Score      = pbPlayer.RealTimePVPInfo.Score,
                    UserId     = pbPlayer.UserId,
                    IsBot      = false
                };
            }
            return(battleRoomPlayer);
        }