123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- System.register(["cc"], function (_export, _context) {
- "use strict";
- var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, Prefab, SpriteFrame, Texture2D, _crd, bundleConfig;
- return {
- setters: [function (_cc) {
- _cclegacy = _cc.cclegacy;
- __checkObsolete__ = _cc.__checkObsolete__;
- __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
- Prefab = _cc.Prefab;
- SpriteFrame = _cc.SpriteFrame;
- Texture2D = _cc.Texture2D;
- }],
- execute: function () {
- _crd = true;
- _cclegacy._RF.push({}, "7c031pNnkVKr7dEuMs8VZ76", "BundleConfig", undefined);
- /*['data', {
- loadAtLaunch: true,//是否加载配置的bundle
- preloadAssets: [
- { path: 'textures/background', skipLoading: true }这个资源跳过加载
- { path: 'csv', isDirectory: true }, // 加载csv目录下所有文件
- { path: 'json/config', isDirectory: true }, // 加载config目录下所有文件
- { path: 'special/item', type: Prefab } // 单独加载某个特定资源
- ],
- autoLoadAll: true //自动加载所有资源
- excludePaths?: [],//要排除的资源路径前缀(当autoLoadAll为true时生效
- excludeExtensions?: []//要排除的文件扩展名(如['.meta']
- }],
- ['prefabs', {
- loadAtLaunch: true,
- preloadAssets: [
- { path: 'ui', isDirectory: true, type: Prefab }, // 加载ui目录下所有Prefab
- { path: 'effects', isDirectory: true } // 加载effects目录下所有资源
- { path: 'enemies/enemie_01', type: Prefab },
- { path: 'enemies/enemie_02', type: Prefab },
- { path: 'texture/msg_hint/spriteFrame', type: SpriteFrame },
- { path: 'texture/test_01/texture', type: Texture2D },
- { path: 'texture/test_02/spriteFrame', type: SpriteFrame }
- ]
- }]*/
- //游戏初始化资源加载配置
- __checkObsolete__(['Prefab', 'SpriteFrame', 'Texture2D']);
- _export("bundleConfig", bundleConfig = new Map([['audios', {
- loadAtLaunch: true,
- autoLoadAll: true //自动加载所有资源
- }], ['data', {
- loadAtLaunch: true,
- preloadAssets: [{
- path: 'csv',
- isDirectory: true
- }]
- }], ['prefabs', {
- loadAtLaunch: true,
- //参与启动加载
- preloadAssets: [{
- path: 'enemy/enemy',
- type: Prefab
- }, {
- path: 'enemy/pistol',
- type: Prefab
- }, {
- path: 'enemy/sniper_rifle',
- type: Prefab
- }, {
- path: 'enemy/scatter',
- type: Prefab
- }, {
- path: 'enemy/tank_pao',
- type: Prefab
- }, {
- path: 'enemy/pistol',
- type: Prefab
- }, {
- path: 'player/98k',
- type: Prefab
- }, {
- path: 'player/m24',
- type: Prefab
- }, {
- path: 'player/awm',
- type: Prefab
- }, {
- path: 'player/barrettM82A1',
- type: Prefab
- }, {
- path: 'player/m416',
- type: Prefab
- }, {
- path: 'player/akm',
- type: Prefab
- }, {
- path: 'player/vss',
- type: Prefab
- }, {
- path: 'player/sks',
- type: Prefab
- }, {
- path: 'texture/msg_hint/spriteFrame',
- type: SpriteFrame
- }, {
- path: 'texture/test_01/texture',
- type: Texture2D
- }, {
- path: 'texture/test_02/spriteFrame',
- type: SpriteFrame
- }]
- }]]));
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=11261ccc4b08ec4e0d7381b68a61ece8a9d52bd4.js.map
|