UNPKG

@typed-tabletop-simulator/lib

Version:
35 lines (34 loc) 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAssetBundle = void 0; const baseObject_1 = require("./baseObject"); const createAssetBundle = (properties) => { const customAssetBundle = { CustomAssetbundle: { AssetbundleURL: properties.bundle, AssetbundleSecondaryURL: properties.secondaryBundle, TypeIndex: properties.type, MaterialIndex: properties.material, LoopingEffectIndex: properties.loopingEffect, }, }; if (properties.type === 6 /* ModelType.Bag */) { return { ...(0, baseObject_1.createBaseObject)(properties, "Custom_Assetbundle_Bag" /* ObjectName.AssetBundleBag */), ...customAssetBundle, ContainedObjects: properties.content, }; } if (properties.type === 7 /* ModelType.Infinite */) { return { ...(0, baseObject_1.createBaseObject)(properties, "Custom_Assetbundle_Infinite_Bag" /* ObjectName.AssetBundleInfiniteBag */), ...customAssetBundle, ContainedObjects: properties.content, }; } return { ...(0, baseObject_1.createBaseObject)(properties, "Custom_Assetbundle" /* ObjectName.AssetBundle */), ...customAssetBundle, }; }; exports.createAssetBundle = createAssetBundle;