Ejemplo n.º 1
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);
    }