public static int ClearGiftStoreOperationalGoods(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); dataSectionGiftStore.ClearGiftStoreOperationalGoods(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_BanBuyingGoodsList(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionGiftStore.BanBuyingGoodsList); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionGiftStore o = new DataSectionGiftStore(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetOperationalGoodsList(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); List <GiftStoreOperationalGoods> operationalGoodsList = dataSectionGiftStore.GetOperationalGoodsList(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, operationalGoodsList); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllOrderRewards(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); Dictionary <string, OrderReward> allOrderRewards = dataSectionGiftStore.GetAllOrderRewards(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allOrderRewards); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetFirstBoughtRecords(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); Dictionary <int, string> firstBoughtRecords = dataSectionGiftStore.GetFirstBoughtRecords(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, firstBoughtRecords); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetLocalBoughtItems(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); List <GiftStoreItem> localBoughtItems = dataSectionGiftStore.GetLocalBoughtItems(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, localBoughtItems); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SerializeToClient(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); object o = dataSectionGiftStore.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveOrderReward(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); string orderId; LuaObject.checkType(l, 2, out orderId); dataSectionGiftStore.RemoveOrderReward(orderId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitOperationalGoodsList(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); GiftStoreOperationalGoods goods; LuaObject.checkType <GiftStoreOperationalGoods>(l, 2, out goods); dataSectionGiftStore.InitOperationalGoodsList(goods); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitmBanBuyingGoodsList(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); Dictionary <int, DateTime> goodsList; LuaObject.checkType <Dictionary <int, DateTime> >(l, 2, out goodsList); dataSectionGiftStore.InitmBanBuyingGoodsList(goodsList); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SetBoughtItems(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); List <GiftStoreItem> boughtItems; LuaObject.checkType <List <GiftStoreItem> >(l, 2, out boughtItems); dataSectionGiftStore.SetBoughtItems(boughtItems); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitBoughtItem(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); GiftStoreItem storeItem; LuaObject.checkType <GiftStoreItem>(l, 2, out storeItem); dataSectionGiftStore.InitBoughtItem(storeItem); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int HasBought(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); bool b = dataSectionGiftStore.HasBought(goodsId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetFirstBoughtItemRegisterId(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); string firstBoughtItemRegisterId = dataSectionGiftStore.GetFirstBoughtItemRegisterId(goodsId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, firstBoughtItemRegisterId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FindLocalBoughtItemById(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); GiftStoreItem o = dataSectionGiftStore.FindLocalBoughtItemById(goodsId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitFirstBuyGoodsRecord(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); string registerId; LuaObject.checkType(l, 3, out registerId); dataSectionGiftStore.InitFirstBuyGoodsRecord(goodsId, registerId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SetBanBuyingGoodsTime(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); DateTime expiredTime; LuaObject.checkValueType <DateTime>(l, 3, out expiredTime); dataSectionGiftStore.SetBanBuyingGoodsTime(goodsId, expiredTime); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsGoodsOnBanBuyingPeriod(IntPtr l) { int result; try { DataSectionGiftStore dataSectionGiftStore = (DataSectionGiftStore)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); DateTime currentTime; LuaObject.checkValueType <DateTime>(l, 3, out currentTime); bool b = dataSectionGiftStore.IsGoodsOnBanBuyingPeriod(goodsId, currentTime); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }