public static int BuyGoods(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); string registerId; LuaObject.checkType(l, 3, out registerId); int boughtNums; LuaObject.checkType(l, 4, out boughtNums); long nextFlushTime; LuaObject.checkType(l, 5, out nextFlushTime); giftStoreComponent.BuyGoods(goodsId, registerId, boughtNums, nextFlushTime); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DeInit(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); giftStoreComponent.DeInit(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_PostDeSerialize(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); giftStoreComponent.m_luaExportHelper.__callBase_PostDeSerialize(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { GiftStoreComponent o = new GiftStoreComponent(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_GetAllOrderRewards(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); List <OrderReward> o = giftStoreComponent.m_luaExportHelper.__callBase_GetAllOrderRewards(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetDSVersion(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); ushort dsversion = giftStoreComponent.GetDSVersion(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dsversion); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_OnBuyGiftStoreGoods(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); ConfigDataGiftStoreItemInfo goodsInfo; LuaObject.checkType <ConfigDataGiftStoreItemInfo>(l, 2, out goodsInfo); giftStoreComponent.m_luaExportHelper.__callBase_OnBuyGiftStoreGoods(goodsInfo); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_RemoveOrderReward(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); string orderId; LuaObject.checkType(l, 2, out orderId); giftStoreComponent.m_luaExportHelper.__callBase_RemoveOrderReward(orderId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_Tick(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); uint deltaMillisecond; LuaObject.checkType(l, 2, out deltaMillisecond); giftStoreComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_CanAppleSubscribeGoods(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); int i = giftStoreComponent.m_luaExportHelper.__callBase_CanAppleSubscribeGoods(goodsId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsGiftStoreItemSellOut(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); GiftStoreItem item; LuaObject.checkType <GiftStoreItem>(l, 2, out item); bool b = giftStoreComponent.IsGiftStoreItemSellOut(item); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_AddFirstBuyGoodsRecord(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); string goodsRegisterId; LuaObject.checkType(l, 3, out goodsRegisterId); giftStoreComponent.m_luaExportHelper.__callBase_AddFirstBuyGoodsRecord(goodsId, goodsRegisterId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DeSerialize(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, typeof(DSGiftStoreNtf))) { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); DSGiftStoreNtf msg; LuaObject.checkType <DSGiftStoreNtf>(l, 2, out msg); giftStoreComponent.DeSerialize(msg); LuaObject.pushValue(l, true); result = 1; } else if (LuaObject.matchType(l, total, 2, typeof(GiftStoreOperationalGoodsUpdateNtf))) { GiftStoreComponent giftStoreComponent2 = (GiftStoreComponent)LuaObject.checkSelf(l); GiftStoreOperationalGoodsUpdateNtf msg2; LuaObject.checkType <GiftStoreOperationalGoodsUpdateNtf>(l, 2, out msg2); giftStoreComponent2.DeSerialize(msg2); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function DeSerialize to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_IsOnSaleTime(IntPtr l) { int result; try { GiftStoreComponent giftStoreComponent = (GiftStoreComponent)LuaObject.checkSelf(l); DateTime saleStartTime; LuaObject.checkValueType <DateTime>(l, 2, out saleStartTime); DateTime saleEndTime; LuaObject.checkValueType <DateTime>(l, 3, out saleEndTime); DateTime currentTime; LuaObject.checkValueType <DateTime>(l, 4, out currentTime); bool b = giftStoreComponent.m_luaExportHelper.__callBase_IsOnSaleTime(saleStartTime, saleEndTime, currentTime); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }