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

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

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

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionRechargeStore.BanBuyingGoodsList);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 4
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            object o = dataSectionRechargeStore.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 5
0
    public static int GetBoughtGoodsList(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            HashSet <int>            boughtGoodsList          = dataSectionRechargeStore.GetBoughtGoodsList();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, boughtGoodsList);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 6
0
    public static int InitBoughtGoodsList(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            List <int> goodsList;
            LuaObject.checkType <List <int> >(l, 2, out goodsList);
            dataSectionRechargeStore.InitBoughtGoodsList(goodsList);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 7
0
    public static int set_m_banBuyingGoodsList(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore   dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            Dictionary <int, DateTime> banBuyingGoodsList;
            LuaObject.checkType <Dictionary <int, DateTime> >(l, 2, out banBuyingGoodsList);
            dataSectionRechargeStore.m_banBuyingGoodsList = banBuyingGoodsList;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 8
0
    public static int BuyGoods(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            dataSectionRechargeStore.BuyGoods(goodsId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 9
0
    public static int SetBanBuyingGoodsTime(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            DateTime expiredTime;
            LuaObject.checkValueType <DateTime>(l, 3, out expiredTime);
            dataSectionRechargeStore.SetBanBuyingGoodsTime(goodsId, expiredTime);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 10
0
    public static int IsGoodsOnBanBuyingPeriod(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            DateTime currentTime;
            LuaObject.checkValueType <DateTime>(l, 3, out currentTime);
            bool b = dataSectionRechargeStore.IsGoodsOnBanBuyingPeriod(goodsId, currentTime);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }