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

        try
        {
            HeroTrainningComponent           heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            ConfigDataHeroTrainningLevelInfo levelInfo;
            LuaObject.checkType <ConfigDataHeroTrainningLevelInfo>(l, 2, out levelInfo);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 3, out battleTreasures);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 4, out heroes);
            int energyCost;
            LuaObject.checkType(l, 5, out energyCost);
            bool isBattleTeam;
            LuaObject.checkType(l, 6, out isBattleTeam);
            heroTrainningComponent.m_luaExportHelper.__callBase_SetCommonSuccessHeroTrainningLevel(levelInfo, battleTreasures, heroes, energyCost, isBattleTeam);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int SetSuccessHeroTrainningLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent           heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            ConfigDataHeroTrainningLevelInfo levelInfo;
            LuaObject.checkType <ConfigDataHeroTrainningLevelInfo>(l, 2, out levelInfo);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 3, out battleTreasures);
            List <int> heroes;
            LuaObject.checkType <List <int> >(l, 4, out heroes);
            bool isTeamBattle;
            LuaObject.checkType(l, 5, out isTeamBattle);
            heroTrainningComponent.SetSuccessHeroTrainningLevel(levelInfo, battleTreasures, heroes, isTeamBattle);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            heroTrainningComponent.m_luaExportHelper.__callBase_PostDeSerialize();
            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
        {
            HeroTrainningComponent o = new HeroTrainningComponent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            heroTrainningComponent.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            ushort dsversion = heroTrainningComponent.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetDailyChallengNums(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int i = heroTrainningComponent.m_luaExportHelper.__callBase_GetDailyChallengNums();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetAllUnlockedLevels(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            List <int>             o = heroTrainningComponent.m_luaExportHelper.__callBase_GetAllUnlockedLevels();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetCurrentTicketNums(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int currentTicketNums = heroTrainningComponent.GetCurrentTicketNums();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, currentTicketNums);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            DSHeroTrainningNtf     msg;
            LuaObject.checkType <DSHeroTrainningNtf>(l, 2, out msg);
            heroTrainningComponent.DeSerialize(msg);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            heroTrainningComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_AddChallengedNums(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int nums;
            LuaObject.checkType(l, 2, out nums);
            heroTrainningComponent.m_luaExportHelper.__callBase_AddChallengedNums(nums);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_IsLevelUnlocked(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            bool b = heroTrainningComponent.m_luaExportHelper.__callBase_IsLevelUnlocked(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int IsHeroTrainningLevelOpened(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            bool b = heroTrainningComponent.IsHeroTrainningLevelOpened(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_CanAttackHeroTrainningLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            bool isTeamBattle;
            LuaObject.checkType(l, 3, out isTeamBattle);
            int i = heroTrainningComponent.m_luaExportHelper.__callBase_CanAttackHeroTrainningLevel(levelId, isTeamBattle);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int FinishedHeroTrainningLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroTrainningComponent heroTrainningComponent = (HeroTrainningComponent)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            bool isWin;
            LuaObject.checkType(l, 3, out isWin);
            List <int> battleTreasures;
            LuaObject.checkType <List <int> >(l, 4, out battleTreasures);
            int i = heroTrainningComponent.FinishedHeroTrainningLevel(levelId, isWin, battleTreasures);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#17
0
 // Token: 0x0600728B RID: 29323 RVA: 0x001FB86C File Offset: 0x001F9A6C
 public LuaExportHelper(HeroTrainningComponent owner)
 {
     this.m_owner = owner;
 }