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

        try
        {
            RandomStoreComponent randomStoreComponent = (RandomStoreComponent)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            RandomStore store = randomStoreComponent.GetStore(storeId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, store);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ManualFlushRandomStore(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponent randomStoreComponent = (RandomStoreComponent)LuaObject.checkSelf(l);
            RandomStore          store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            int i = randomStoreComponent.ManualFlushRandomStore(store);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_OnBuyStoreItem(IntPtr l)
    {
        int result;

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

        try
        {
            RandomStoreComponent randomStoreComponent = (RandomStoreComponent)LuaObject.checkSelf(l);
            RandomStore          store;
            LuaObject.checkType <RandomStore>(l, 2, out store);
            ConfigDataRandomStoreInfo storeInfo;
            LuaObject.checkType <ConfigDataRandomStoreInfo>(l, 3, out storeInfo);
            int i = randomStoreComponent.m_luaExportHelper.__callBase_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 BuyStoreItem(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponent randomStoreComponent = (RandomStoreComponent)LuaObject.checkSelf(l);
            int storeId;
            LuaObject.checkType(l, 2, out storeId);
            int index;
            LuaObject.checkType(l, 3, out index);
            int i = randomStoreComponent.BuyStoreItem(storeId, index);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_CanBuyRandomStoreItem(IntPtr l)
    {
        int result;

        try
        {
            RandomStoreComponent randomStoreComponent = (RandomStoreComponent)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 = randomStoreComponent.m_luaExportHelper.__callBase_CanBuyRandomStoreItem(storeId, index, selectedIndex);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }