public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData o = new RealTimePVPBattleReportPlayerData();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_Heroes(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, realTimePVPBattleReportPlayerData.Heroes);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ToPro(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData    data = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            ProRealTimePVPBattleReportPlayerData o    = data.ToPro();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Level(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            int level;
            LuaObject.checkType(l, 2, out level);
            realTimePVPBattleReportPlayerData.Level = level;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_UserId(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            string userId;
            LuaObject.checkType(l, 2, out userId);
            realTimePVPBattleReportPlayerData.UserId = userId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Techs(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            List <TrainingTech> techs;
            LuaObject.checkType <List <TrainingTech> >(l, 2, out techs);
            realTimePVPBattleReportPlayerData.Techs = techs;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Heroes(IntPtr l)
    {
        int result;

        try
        {
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData = (RealTimePVPBattleReportPlayerData)LuaObject.checkSelf(l);
            List <BattleHero> heroes;
            LuaObject.checkType <List <BattleHero> >(l, 2, out heroes);
            realTimePVPBattleReportPlayerData.Heroes = heroes;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
        // Token: 0x0600AECB RID: 44747 RVA: 0x00309E10 File Offset: 0x00308010
        public void Open(RealTimePVPBattleReport battleReport)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OpenRealTimePVPBattleReport_hotfix != null)
            {
                this.m_OpenRealTimePVPBattleReport_hotfix.call(new object[]
                {
                    this,
                    battleReport
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            UIUtility.SetUIStateOpen(this.m_uiStateController, "Open", null, false, true);
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = 0;

            if (battleReport.Win)
            {
                if (projectLPlayerContext.IsMe(battleReport.PlayerDatas[1].UserId))
                {
                    num = 1;
                }
            }
            else if (projectLPlayerContext.IsMe(battleReport.PlayerDatas[0].UserId))
            {
                num = 1;
            }
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData  = battleReport.PlayerDatas[num];
            RealTimePVPBattleReportPlayerData realTimePVPBattleReportPlayerData2 = battleReport.PlayerDatas[1 - num];

            this.m_winPlayerName.text    = realTimePVPBattleReportPlayerData.Name;
            this.m_winPlayerLV.text      = realTimePVPBattleReportPlayerData.Level.ToString();
            this.m_winPlayerIcon.sprite  = AssetUtility.Instance.GetSprite(UIUtility.GetPlayerHeadIconImageName(HeadIconTools.GetHeadPortrait(realTimePVPBattleReportPlayerData.HeadIcon)));
            this.m_losePlayerName.text   = realTimePVPBattleReportPlayerData2.Name;
            this.m_losePlayerLV.text     = realTimePVPBattleReportPlayerData2.Level.ToString();
            this.m_losePlayerIcon.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetPlayerHeadIconImageName(HeadIconTools.GetHeadPortrait(realTimePVPBattleReportPlayerData2.HeadIcon)));
        }