// Token: 0x0600510D RID: 20749 RVA: 0x00182688 File Offset: 0x00180888
        public static RealTimePVPBattleReport ToMemory(this ProRealTimePVPBattleReport Report)
        {
            RealTimePVPBattleReport realTimePVPBattleReport = new RealTimePVPBattleReport
            {
                BattleId   = Report.BattleId,
                BattleType = (BattleType)Report.BattleType,
                BPRule     = (BattleRoomBPRule)Report.BPRule,
                CreateTime = new DateTime(Report.CreateTime),
                InstanceId = Report.InstanceId,
                RandomSeed = Report.RandomSeed,
                ReportType = (RealTimePVPBattleReportType)Report.ReportType,
                Win        = Report.Win,
                IsCancel   = Report.IsCancel,
                Version    = Report.Version
            };

            for (int i = 0; i < Report.Datas.Count; i++)
            {
                realTimePVPBattleReport.PlayerDatas[i] = Report.Datas[i].ToMemory();
            }
            foreach (ProBattleCommand pbBattleCommand in Report.Commands)
            {
                realTimePVPBattleReport.Commands.Add(BattleCommand.PBBattleCommandToBattleCommand(pbBattleCommand));
            }
            return(realTimePVPBattleReport);
        }
        // Token: 0x0600510E RID: 20750 RVA: 0x001827AC File Offset: 0x001809AC
        public static ProRealTimePVPBattleReport ToPro(this RealTimePVPBattleReport Report)
        {
            ProRealTimePVPBattleReport proRealTimePVPBattleReport = new ProRealTimePVPBattleReport
            {
                BattleId   = Report.BattleId,
                BattleType = (int)Report.BattleType,
                BPRule     = (int)Report.BPRule,
                CreateTime = Report.CreateTime.Ticks,
                InstanceId = Report.InstanceId,
                RandomSeed = Report.RandomSeed,
                ReportType = (int)Report.ReportType,
                Win        = Report.Win,
                IsCancel   = Report.IsCancel,
                Version    = Report.Version
            };

            for (int i = 0; i < Report.PlayerDatas.Length; i++)
            {
                proRealTimePVPBattleReport.Datas.Add(Report.PlayerDatas[i].ToPro());
            }
            foreach (BattleCommand battleCommand in Report.Commands)
            {
                proRealTimePVPBattleReport.Commands.Add(BattleCommand.BattleCommandToPBBattleCommand(battleCommand));
            }
            return(proRealTimePVPBattleReport);
        }
    public static int ToPro(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReport    report = (RealTimePVPBattleReport)LuaObject.checkSelf(l);
            ProRealTimePVPBattleReport o      = report.ToPro();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }