Exemplo n.º 1
0
    public static int set_BuyStoreItemEvent(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            Action <int, int>         value;
            int num = LuaObject.checkDelegate <Action <int, int> >(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    fixedStoreComponentCommon.BuyStoreItemEvent += value;
                }
                else if (num == 2)
                {
                    fixedStoreComponentCommon.BuyStoreItemEvent -= value;
                }
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, fixedStoreComponentCommon.m_luaExportHelper.m_fixedStoreDS);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 4
0
    public static int OnFlushBoughtNums(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            fixedStoreComponentCommon.m_luaExportHelper.OnFlushBoughtNums();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 5
0
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            fixedStoreComponentCommon.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 6
0
    public static int GetName(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            string name = fixedStoreComponentCommon.GetName();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, name);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 7
0
    public static int Tick(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            fixedStoreComponentCommon.Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 8
0
    public static int set_m_basicInfo(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon      fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            PlayerBasicInfoComponentCommon basicInfo;
            LuaObject.checkType <PlayerBasicInfoComponentCommon>(l, 2, out basicInfo);
            fixedStoreComponentCommon.m_luaExportHelper.m_basicInfo = basicInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 9
0
    public static int set_Owner(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            IComponentOwner           owner;
            LuaObject.checkType <IComponentOwner>(l, 2, out owner);
            fixedStoreComponentCommon.Owner = owner;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 10
0
    public static int set_m_fixedStoreDS(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            DataSectionFixedStore     fixedStoreDS;
            LuaObject.checkType <DataSectionFixedStore>(l, 2, out fixedStoreDS);
            fixedStoreComponentCommon.m_luaExportHelper.m_fixedStoreDS = fixedStoreDS;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 11
0
    public static int set_m_resource(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            ResourceComponentCommon   resource;
            LuaObject.checkType <ResourceComponentCommon>(l, 2, out resource);
            fixedStoreComponentCommon.m_luaExportHelper.m_resource = resource;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 12
0
    public static int OnAddSkin(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            FixedStoreItem            storeItem;
            LuaObject.checkType <FixedStoreItem>(l, 2, out storeItem);
            fixedStoreComponentCommon.m_luaExportHelper.OnAddSkin(storeItem);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 13
0
    public static int set_m_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            IConfigDataLoader         configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            fixedStoreComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 14
0
    public static int GetStoreOfferingById(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            FixedStore storeOfferingById = fixedStoreComponentCommon.m_luaExportHelper.GetStoreOfferingById(storeId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, storeOfferingById);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 15
0
    public static int IsOnDiscountPeriod(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon    fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            ConfigDataFixedStoreItemInfo storeItemConfig;
            LuaObject.checkType <ConfigDataFixedStoreItemInfo>(l, 2, out storeItemConfig);
            bool b = fixedStoreComponentCommon.IsOnDiscountPeriod(storeItemConfig);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 16
0
    public static int __clearDele_BuyStoreItemEvent(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            int arg;
            LuaObject.checkType(l, 2, out arg);
            int arg2;
            LuaObject.checkType(l, 3, out arg2);
            fixedStoreComponentCommon.m_luaExportHelper.__clearDele_BuyStoreItemEvent(arg, arg2);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 17
0
    public static int IsSoldOut(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon    fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            ConfigDataFixedStoreItemInfo itemConfig;
            LuaObject.checkType <ConfigDataFixedStoreItemInfo>(l, 2, out itemConfig);
            FixedStoreItem item;
            LuaObject.checkType <FixedStoreItem>(l, 3, out item);
            bool b = fixedStoreComponentCommon.IsSoldOut(itemConfig, item);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 18
0
    public static int CaculateCurrencyCount(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon    fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            ConfigDataFixedStoreItemInfo storeItemConfig;
            LuaObject.checkType <ConfigDataFixedStoreItemInfo>(l, 2, out storeItemConfig);
            bool isFirstBuy;
            LuaObject.checkType(l, 3, out isFirstBuy);
            int i = fixedStoreComponentCommon.CaculateCurrencyCount(storeItemConfig, isFirstBuy);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 19
0
    public static int CanBuyFixedStoreItem(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon    fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            ConfigDataFixedStoreItemInfo itemConfig;
            LuaObject.checkType <ConfigDataFixedStoreItemInfo>(l, 2, out itemConfig);
            FixedStoreItem item;
            LuaObject.checkType <FixedStoreItem>(l, 3, out item);
            int i = fixedStoreComponentCommon.m_luaExportHelper.CanBuyFixedStoreItem(itemConfig, item);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 20
0
    public static int BuyStoreItem(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            FixedStoreItem storeItem;
            LuaObject.checkType <FixedStoreItem>(l, 3, out storeItem);
            int count;
            LuaObject.checkType(l, 4, out count);
            fixedStoreComponentCommon.m_luaExportHelper.BuyStoreItem(storeId, storeItem, count);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 21
0
    public static int CanBuyGoods(IntPtr l)
    {
        int result;

        try
        {
            FixedStoreComponentCommon fixedStoreComponentCommon = (FixedStoreComponentCommon)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            int goodsId;
            LuaObject.checkType(l, 3, out goodsId);
            int selectedIndex;
            LuaObject.checkType(l, 4, out selectedIndex);
            int i = fixedStoreComponentCommon.CanBuyGoods(storeId, goodsId, selectedIndex);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }