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

        try
        {
            GiftStoreComponentCommon giftStoreComponentCommon = (GiftStoreComponentCommon)LuaObject.checkSelf(l);
            List <GiftStoreItem>     offeredStoreItems        = giftStoreComponentCommon.GetOfferedStoreItems();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, offeredStoreItems);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }