public static int set_BuyStoreItemEvent(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); Action <int, int> value; int num = LuaObject.checkDelegate <Action <int, int> >(l, 2, out value); if (num != 0) { if (num == 1) { giftStoreComponentCommon.BuyStoreItemEvent += value; } else if (num == 2) { giftStoreComponentCommon.BuyStoreItemEvent -= value; } } LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int PostDeSerialize(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); giftStoreComponentCommon.PostDeSerialize(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int OnFlushBoughtNums(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); giftStoreComponentCommon.m_luaExportHelper.OnFlushBoughtNums(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_m_resource(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, giftStoreComponentCommon.m_luaExportHelper.m_resource); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_Owner(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, giftStoreComponentCommon.Owner); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { GiftStoreComponentCommon o = new GiftStoreComponentCommon(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetOfferedStoreItemsByConfig(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); List <GiftStoreItem> offeredStoreItemsByConfig = giftStoreComponentCommon.m_luaExportHelper.GetOfferedStoreItemsByConfig(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, offeredStoreItemsByConfig); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetName(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); string name = giftStoreComponentCommon.GetName(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, name); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetAllOrderRewards(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); List <OrderReward> allOrderRewards = giftStoreComponentCommon.GetAllOrderRewards(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, allOrderRewards); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int OnBuyGiftStoreGoods(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); ConfigDataGiftStoreItemInfo goodsInfo; LuaObject.checkType <ConfigDataGiftStoreItemInfo>(l, 2, out goodsInfo); giftStoreComponentCommon.m_luaExportHelper.OnBuyGiftStoreGoods(goodsInfo); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveOrderReward(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); string orderId; LuaObject.checkType(l, 2, out orderId); giftStoreComponentCommon.RemoveOrderReward(orderId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __clearDele_BuyGiftStoreGoodsEvent(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); int obj; LuaObject.checkType(l, 2, out obj); giftStoreComponentCommon.m_luaExportHelper.__clearDele_BuyGiftStoreGoodsEvent(obj); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Owner(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); IComponentOwner owner; LuaObject.checkType <IComponentOwner>(l, 2, out owner); giftStoreComponentCommon.Owner = owner; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Tick(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); uint deltaMillisecond; LuaObject.checkType(l, 2, out deltaMillisecond); giftStoreComponentCommon.Tick(deltaMillisecond); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_bag(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); BagComponentCommon bag; LuaObject.checkType <BagComponentCommon>(l, 2, out bag); giftStoreComponentCommon.m_luaExportHelper.m_bag = bag; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_giftStoreDS(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); DataSectionGiftStore giftStoreDS; LuaObject.checkType <DataSectionGiftStore>(l, 2, out giftStoreDS); giftStoreComponentCommon.m_luaExportHelper.m_giftStoreDS = giftStoreDS; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_configDataLoader(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); giftStoreComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader; 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 { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); bool b = giftStoreComponentCommon.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 CanAppleSubscribeGoods(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); int i = giftStoreComponentCommon.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 AddFirstBuyGoodsRecord(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); int goodsId; LuaObject.checkType(l, 2, out goodsId); string goodsRegisterId; LuaObject.checkType(l, 3, out goodsRegisterId); giftStoreComponentCommon.AddFirstBuyGoodsRecord(goodsId, goodsRegisterId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callDele_BuyStoreItemEvent(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l); int arg; LuaObject.checkType(l, 2, out arg); int arg2; LuaObject.checkType(l, 3, out arg2); giftStoreComponentCommon.m_luaExportHelper.__callDele_BuyStoreItemEvent(arg, arg2); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsOnSaleTime(IntPtr l) { int result; try { GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)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 = giftStoreComponentCommon.m_luaExportHelper.IsOnSaleTime(saleStartTime, saleEndTime, currentTime); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }