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

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

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

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

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

        try
        {
            DataSectionTreasureMap dataSectionTreasureMap = (DataSectionTreasureMap)LuaObject.checkSelf(l);
            List <int>             levels;
            LuaObject.checkType <List <int> >(l, 2, out levels);
            dataSectionTreasureMap.InitFinishedLevels(levels);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int AddFinishedLevel(IntPtr l)
    {
        int result;

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