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

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

        try
        {
            HeroDungeonChapter heroDungeonChapter = (HeroDungeonChapter)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroDungeonChapter.ChapterLevels);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ChapterLevels(IntPtr l)
    {
        int result;

        try
        {
            HeroDungeonChapter      heroDungeonChapter = (HeroDungeonChapter)LuaObject.checkSelf(l);
            List <HeroDungeonLevel> chapterLevels;
            LuaObject.checkType <List <HeroDungeonLevel> >(l, 2, out chapterLevels);
            heroDungeonChapter.ChapterLevels = chapterLevels;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ToPBChapter_s(IntPtr l)
    {
        int result;

        try
        {
            HeroDungeonChapter chapter;
            LuaObject.checkType <HeroDungeonChapter>(l, 1, out chapter);
            ProHeroDungeonChapter o = HeroDungeonChapter.ToPBChapter(chapter);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_TotalStars(IntPtr l)
    {
        int result;

        try
        {
            HeroDungeonChapter heroDungeonChapter = (HeroDungeonChapter)LuaObject.checkSelf(l);
            int totalStars;
            LuaObject.checkType(l, 2, out totalStars);
            heroDungeonChapter.TotalStars = totalStars;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ChapterId(IntPtr l)
    {
        int result;

        try
        {
            HeroDungeonChapter heroDungeonChapter = (HeroDungeonChapter)LuaObject.checkSelf(l);
            int chapterId;
            LuaObject.checkType(l, 2, out chapterId);
            heroDungeonChapter.ChapterId = chapterId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_StarRewardIndexes(IntPtr l)
    {
        int result;

        try
        {
            HeroDungeonChapter heroDungeonChapter = (HeroDungeonChapter)LuaObject.checkSelf(l);
            List <int>         starRewardIndexes;
            LuaObject.checkType <List <int> >(l, 2, out starRewardIndexes);
            heroDungeonChapter.StarRewardIndexes = starRewardIndexes;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #8
0
    public static int FindChapter(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            int chapterId;
            LuaObject.checkType(l, 2, out chapterId);
            HeroDungeonChapter o = dataSectionHeroDungeon.FindChapter(chapterId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }