Ejemplo n.º 1
0
    public static int AddLevel(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            HeroDungeonChapter     chapter;
            LuaObject.checkType <HeroDungeonChapter>(l, 2, out chapter);
            int levelId;
            LuaObject.checkType(l, 3, out levelId);
            int stars;
            LuaObject.checkType(l, 4, out stars);
            int nums;
            LuaObject.checkType(l, 5, out nums);
            dataSectionHeroDungeon.AddLevel(chapter, levelId, stars, nums);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
    public static int get_Chapters(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionHeroDungeon.Chapters);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            dataSectionHeroDungeon.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 4
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon o = new DataSectionHeroDungeon();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 5
0
    public static int ResetLevelChallengeNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            dataSectionHeroDungeon.ResetLevelChallengeNums();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            object o = dataSectionHeroDungeon.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 7
0
    public static int set_Chapters(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            Dictionary <int, HeroDungeonChapter> chapters;
            LuaObject.checkType <Dictionary <int, HeroDungeonChapter> >(l, 2, out chapters);
            dataSectionHeroDungeon.Chapters = chapters;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 8
0
    public static int set_AchievementRelationIds(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            HashSet <int>          achievementRelationIds;
            LuaObject.checkType <HashSet <int> >(l, 2, out achievementRelationIds);
            dataSectionHeroDungeon.AchievementRelationIds = achievementRelationIds;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 9
0
    public static int set_FinishedLevels(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            HashSet <int>          finishedLevels;
            LuaObject.checkType <HashSet <int> >(l, 2, out finishedLevels);
            dataSectionHeroDungeon.FinishedLevels = finishedLevels;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 10
0
    public static int AddDailyChallengeNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            int nums;
            LuaObject.checkType(l, 2, out nums);
            dataSectionHeroDungeon.AddDailyChallengeNums(nums);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 11
0
    public static int AddAchievementRelationId(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            int achievementRelationId;
            LuaObject.checkType(l, 2, out achievementRelationId);
            dataSectionHeroDungeon.AddAchievementRelationId(achievementRelationId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 12
0
    public static int FinishedLevel(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            dataSectionHeroDungeon.FinishedLevel(levelId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 13
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);
    }
Ejemplo n.º 14
0
    public static int AddChapterStarRewardIndex(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            HeroDungeonChapter     chapter;
            LuaObject.checkType <HeroDungeonChapter>(l, 2, out chapter);
            int index;
            LuaObject.checkType(l, 3, out index);
            dataSectionHeroDungeon.AddChapterStarRewardIndex(chapter, index);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 15
0
    public static int InitChapteStarRewardIndexes(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l);
            int chapterId;
            LuaObject.checkType(l, 2, out chapterId);
            List <int> starRewardIndexes;
            LuaObject.checkType <List <int> >(l, 3, out starRewardIndexes);
            dataSectionHeroDungeon.InitChapteStarRewardIndexes(chapterId, starRewardIndexes);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }