Ejemplo n.º 1
0
        internal void Initialize(string path, List <string> searchPaths, BundlerContext context)
        {
            _path         = path;
            _searchPaths  = searchPaths;
            _assetBundle  = null;
            _createdIndex = s_Indexer++;

            _context     = context;
            Dependencies = ListPool <BundleLoaderBase> .Get();
        }
Ejemplo n.º 2
0
        internal AssetBase(string path, Type type, BundleLoaderBase target, BundlerContext context)
        {
            _loader  = target;
            _path    = path;
            _type    = type;
            _context = context;

            ThrowIfBundleError();

            LoadAsset();
        }
Ejemplo n.º 3
0
        internal LoadRequest(ModeBase mode, BundlerContext context, string path, BundleLoaderBase bundleLoader)
        {
            _path         = path;
            _context      = context;
            _mode         = mode;
            _bundleLoader = bundleLoader;

            IsDone = _bundleLoader == null;

            if (!IsDone)
            {
                LoadInternal();
            }
        }
Ejemplo n.º 4
0
        internal SceneBase(string path, LoadSceneMode mode, BundlerContext context, BundleLoaderBase bundleLoader = null)
        {
            _path         = path;
            _mode         = mode;
            Context       = context;
            _bundleLoader = bundleLoader;

            _scenePath = _path.Substring(7, _path.Length - 13); // Cut from "Assets/_____.unity"

            if (_bundleLoader != null && !_bundleLoader.IsDone)
            {
                throw new BundleException("Loader hasn't finished!");
            }

            LoadInternal();
            Retain();
        }
Ejemplo n.º 5
0
 internal ModeBase(BundlerManifest manifest, List <string> searchPaths, BundlerContext context)
 {
     _manifest    = manifest;
     _searchPaths = searchPaths;
     _context     = context;
 }
Ejemplo n.º 6
0
 internal LoadRequestSync(ModeBase mode, BundlerContext context, string path, BundleLoaderBase bundleLoader)
     : base(mode, context, path, bundleLoader)
 {
 }
Ejemplo n.º 7
0
 internal SceneAsync(string path, LoadSceneMode mode, BundlerContext context, BundleLoaderBase loader)
     : base(path, mode, context, loader)
 {
 }
Ejemplo n.º 8
0
 internal EditorSceneAsync(BundlerContext context)
 {
     _context = context;
 }
Ejemplo n.º 9
0
            = new Dictionary <ILoadRequestAsync, Dictionary <Type, IAssetAsync> >(); // Load request <=> Asset typed dict.

        internal BundleMode(BundlerManifest manifest, List <string> searchPaths, BundlerContext context)
            : base(manifest, searchPaths, context)
        {
        }
Ejemplo n.º 10
0
 internal BundleAssetAsync(string path, Type type, BundleLoaderBase target, BundlerContext context)
     : base(path, type, target, context)
 {
 }
Ejemplo n.º 11
0
 internal ResourceAssetAsync(string assetName, Type type, BundlerContext context)
     : base(assetName, type, null, context)
 {
 }
Ejemplo n.º 12
0
 public AssetDatabaseAsync(BundlerContext context)
 {
     _context = context;
 }