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

        try
        {
            BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleHeroJob.JobConnectionInfo);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_m_jobRelatedId(IntPtr l)
    {
        int result;

        try
        {
            BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleHeroJob.m_luaExportHelper.m_jobRelatedId);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int UpdateJobConnectionInfo(IntPtr l)
    {
        int result;

        try
        {
            BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
            battleHeroJob.m_luaExportHelper.UpdateJobConnectionInfo();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            BattleHeroJob battleHeroJob;
            LuaObject.checkType <BattleHeroJob>(l, 1, out battleHeroJob);
            HeroJob o = BattleHeroJob.BattleHeroJobToHeroJob(battleHeroJob);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_JobConnectionInfo(IntPtr l)
    {
        int result;

        try
        {
            BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
            ConfigDataJobConnectionInfo jobConnectionInfo;
            LuaObject.checkType <ConfigDataJobConnectionInfo>(l, 2, out jobConnectionInfo);
            battleHeroJob.m_luaExportHelper.JobConnectionInfo = jobConnectionInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_JobLevel(IntPtr l)
    {
        int result;

        try
        {
            BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
            int           jobLevel;
            LuaObject.checkType(l, 2, out jobLevel);
            battleHeroJob.JobLevel = jobLevel;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int PBBattleHeroJobToBattleHeroJob_s(IntPtr l)
    {
        int result;

        try
        {
            ProBattleHeroJob pbBattleHeroJob;
            LuaObject.checkType <ProBattleHeroJob>(l, 1, out pbBattleHeroJob);
            BattleHeroJob o = BattleHeroJob.PBBattleHeroJobToBattleHeroJob(pbBattleHeroJob);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int IsLevelMax(IntPtr l)
    {
        int result;

        try
        {
            int num = LuaDLL.lua_gettop(l);
            if (num == 1)
            {
                BattleHeroJob battleHeroJob = (BattleHeroJob)LuaObject.checkSelf(l);
                bool          b             = battleHeroJob.IsLevelMax();
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, b);
                result = 2;
            }
            else if (num == 2)
            {
                BattleHeroJob battleHeroJob2 = (BattleHeroJob)LuaObject.checkSelf(l);
                int           jobLevel;
                LuaObject.checkType(l, 2, out jobLevel);
                bool b2 = battleHeroJob2.IsLevelMax(jobLevel);
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, b2);
                result = 2;
            }
            else
            {
                LuaObject.pushValue(l, false);
                LuaDLL.lua_pushstring(l, "No matched override function IsLevelMax to call");
                result = 2;
            }
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }