public MissingObjectInfo(AssetArchive archive, long id, TypeID typeId) : base(archive) { this.ID = id; this.TypeID = typeId; this.IsPotentialRedundancy = false; this.fingerprint = new IdentifierFingerprint(this.ID, this.Archive == null ? "" : this.Archive.Name); }
public AssetArchive GetAssetArchive(string name) { var key = System.IO.Path.GetFileName(name); AssetArchive asset = null; this.archives.TryGetValue(key, out asset); return(asset); }
public void AddAssetArchive(AssetArchive archive) { if (this.archives.ContainsKey(archive.Name)) { return; } this.archives.Add(archive.Name, archive); }
public virtual AssetArchive GetAssetArchive(string name) { lock (_lock) { if (string.IsNullOrEmpty(name)) { return(null); } AssetArchive asset = null; foreach (var bundle in bundles) { asset = bundle.GetAssetArchive(name); if (asset != null) { return(asset); } } return(asset); } }
public void RemoveAssetArchive(AssetArchive archive) { this.archives.Remove(archive.Name); }
public AbstractObjectInfo(AssetArchive archive) { this.Archive = archive; this.IsBuiltin = this.Archive == null ? false : Archive.Type == ArchiveType.BUILTIN; this.IsStreamed = this.Archive == null ? false : Archive.Type == ArchiveType.CAB; }