local ____lualib = require("lualib_bundle")
local __TS__ObjectAssign = ____lualib.__TS__ObjectAssign
local ____exports = {}
local ____baseObject = require("forge.baseObject")
local createBaseObject = ____baseObject.createBaseObject
____exports.createAssetBundle = function(properties)
    local customAssetBundle = {CustomAssetbundle = {
        AssetbundleURL = properties.bundle,
        AssetbundleSecondaryURL = properties.secondaryBundle,
        TypeIndex = properties.type,
        MaterialIndex = properties.material,
        LoopingEffectIndex = properties.loopingEffect
    }}
    if properties.type == 6 then
        return __TS__ObjectAssign(
            {},
            createBaseObject(properties, "Custom_Assetbundle_Bag"),
            customAssetBundle,
            {ContainedObjects = properties.content}
        )
    end
    if properties.type == 7 then
        return __TS__ObjectAssign(
            {},
            createBaseObject(properties, "Custom_Assetbundle_Infinite_Bag"),
            customAssetBundle,
            {ContainedObjects = properties.content}
        )
    end
    return __TS__ObjectAssign(
        {},
        createBaseObject(properties, "Custom_Assetbundle"),
        customAssetBundle
    )
end
return ____exports
