Exemplo n.º 1
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            dataSectionAnikiGym.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int get_ChallengedNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionAnikiGym.ChallengedNums);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym o = new DataSectionAnikiGym();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 4
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            object o = dataSectionAnikiGym.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 5
0
    public static int GetAllFinishedLevels(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            HashSet <int>       allFinishedLevels   = dataSectionAnikiGym.GetAllFinishedLevels();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, allFinishedLevels);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 6
0
    public static int InitFinishedLevels(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            List <int>          levels;
            LuaObject.checkType <List <int> >(l, 2, out levels);
            dataSectionAnikiGym.InitFinishedLevels(levels);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 7
0
    public static int AddChallengedNums(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            int nums;
            LuaObject.checkType(l, 2, out nums);
            dataSectionAnikiGym.AddChallengedNums(nums);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 8
0
    public static int AddFinishedLevel(IntPtr l)
    {
        int result;

        try
        {
            DataSectionAnikiGym dataSectionAnikiGym = (DataSectionAnikiGym)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            dataSectionAnikiGym.AddFinishedLevel(levelId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }