public static int set_BuyStoreItemEvent(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            Action <int, int>          value;
            int num = LuaObject.checkDelegate <Action <int, int> >(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    randomStoreComponentCommon.BuyStoreItemEvent += value;
                }
                else if (num == 2)
                {
                    randomStoreComponentCommon.BuyStoreItemEvent -= value;
                }
            }
            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
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            randomStoreComponentCommon.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_m_randomStoreDS(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, randomStoreComponentCommon.m_luaExportHelper.m_randomStoreDS);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon o = new RandomStoreComponentCommon();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetName(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            string name = randomStoreComponentCommon.GetName();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, name);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Owner(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            IComponentOwner            owner;
            LuaObject.checkType <IComponentOwner>(l, 2, out owner);
            randomStoreComponentCommon.Owner = owner;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_randomStoreDS(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            DataSectionRandomStore     randomStoreDS;
            LuaObject.checkType <DataSectionRandomStore>(l, 2, out randomStoreDS);
            randomStoreComponentCommon.m_luaExportHelper.m_randomStoreDS = randomStoreDS;
            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
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            BagComponentCommon         bag;
            LuaObject.checkType <BagComponentCommon>(l, 2, out bag);
            randomStoreComponentCommon.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_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            IConfigDataLoader          configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            randomStoreComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader;
            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
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            randomStoreComponentCommon.Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int IsBoughtStoreItem(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            RandomStoreItem            storeItem;
            LuaObject.checkType <RandomStoreItem>(l, 2, out storeItem);
            bool b = randomStoreComponentCommon.m_luaExportHelper.IsBoughtStoreItem(storeItem);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int CanAutoFlushStore(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            RandomStore store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            bool b = randomStoreComponentCommon.CanAutoFlushStore(store);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __clearDele_BuyStoreItemEvent(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            int arg;
            LuaObject.checkType(l, 2, out arg);
            int arg2;
            LuaObject.checkType(l, 3, out arg2);
            randomStoreComponentCommon.m_luaExportHelper.__clearDele_BuyStoreItemEvent(arg, arg2);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int OnBuyStoreItem(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            int goodsId;
            LuaObject.checkType(l, 3, out goodsId);
            randomStoreComponentCommon.m_luaExportHelper.OnBuyStoreItem(storeId, goodsId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int CanManualFlushStore(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            RandomStore store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            ConfigDataRandomStoreInfo storeInfo;
            LuaObject.checkType <ConfigDataRandomStoreInfo>(l, 3, out storeInfo);
            int i = randomStoreComponentCommon.m_luaExportHelper.CanManualFlushStore(store, storeInfo);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int CanBuyRandomStoreItem(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponentCommon randomStoreComponentCommon = (RandomStoreComponentCommon)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            int index;
            LuaObject.checkType(l, 3, out index);
            int selectedIndex;
            LuaObject.checkType(l, 4, out selectedIndex);
            int i = randomStoreComponentCommon.CanBuyRandomStoreItem(storeId, index, selectedIndex);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }