Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ResolvedBundle.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System.Collections.Generic;
4 using SiliconStudio.Core.Storage;
5 
6 namespace SiliconStudio.Assets.CompilerApp
7 {
8  /// <summary>
9  /// Helper class that represents additional data added to a <see cref="Bundle"/> when resolving asset.
10  /// </summary>
12  {
13  public ResolvedBundle(Bundle source)
14  {
15  Source = source;
16  Name = Source.Name;
17  }
18 
19  /// <summary>
20  /// Name of the bundle.
21  /// </summary>
22  public string Name;
23 
24  /// <summary>
25  /// Represented <see cref="Bundle"/>.
26  /// </summary>
27  public Bundle Source;
28 
29  /// <summary>
30  /// The asset urls this bundle should include (a.k.a. "root assets").
31  /// </summary>
32  public HashSet<string> AssetUrls = new HashSet<string>();
33 
34  /// <summary>
35  /// The bundle dependencies.
36  /// </summary>
37  public HashSet<ResolvedBundle> Dependencies = new HashSet<ResolvedBundle>();
38 
39  /// <summary>
40  /// The object ids referenced directly by this bundle.
41  /// </summary>
42  public HashSet<ObjectId> ObjectIds = new HashSet<ObjectId>();
43 
44  /// <summary>
45  /// The object ids referenced indirectly by this bundle.
46  /// </summary>
47  public HashSet<ObjectId> DependencyObjectIds = new HashSet<ObjectId>();
48 
49  /// <summary>
50  /// The index map that this bundle.
51  /// </summary>
52  public Dictionary<string, ObjectId> IndexMap = new Dictionary<string, ObjectId>();
53 
54  /// <summary>
55  /// The index map merged from all this bundle dependencies.
56  /// </summary>
57  public Dictionary<string, ObjectId> DependencyIndexMap = new Dictionary<string, ObjectId>();
58 
59  /// <summary>
60  /// The bundle backend.
61  /// </summary>
63 
64  public override string ToString()
65  {
66  return Name;
67  }
68  }
69 }
Description of an asset bundle.
Definition: Bundle.cs:15
Helper class that represents additional data added to a Bundle when resolving asset.
Object Database Backend (ODB) implementation that bundles multiple chunks into a .bundle files, optionally compressed with LZ4.
BundleOdbBackend BundleBackend
The bundle backend.