Beispiel #1
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            RiftChapter riftChapter = (RiftChapter)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, riftChapter.ChapterLevels);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #3
0
    public static int RiftChapterToPBRiftChapter_s(IntPtr l)
    {
        int result;

        try
        {
            RiftChapter riftChapter;
            LuaObject.checkType <RiftChapter>(l, 1, out riftChapter);
            ProRiftChapter o = RiftChapter.RiftChapterToPBRiftChapter(riftChapter);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #4
0
    public static int set_TotalStars(IntPtr l)
    {
        int result;

        try
        {
            RiftChapter riftChapter = (RiftChapter)LuaObject.checkSelf(l);
            int         totalStars;
            LuaObject.checkType(l, 2, out totalStars);
            riftChapter.TotalStars = totalStars;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #5
0
    public static int set_StarRewardIndexes(IntPtr l)
    {
        int result;

        try
        {
            RiftChapter riftChapter = (RiftChapter)LuaObject.checkSelf(l);
            List <int>  starRewardIndexes;
            LuaObject.checkType <List <int> >(l, 2, out starRewardIndexes);
            riftChapter.StarRewardIndexes = starRewardIndexes;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #6
0
    public static int set_ChapterLevels(IntPtr l)
    {
        int result;

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

        try
        {
            DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l);
            int             chapterId;
            LuaObject.checkType(l, 2, out chapterId);
            RiftChapter o = dataSectionRift.AddChapter(chapterId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }