示例#1
0
 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);
 }
示例#2
0
        public AssetArchive GetAssetArchive(string name)
        {
            var          key   = System.IO.Path.GetFileName(name);
            AssetArchive asset = null;

            this.archives.TryGetValue(key, out asset);
            return(asset);
        }
示例#3
0
 public void AddAssetArchive(AssetArchive archive)
 {
     if (this.archives.ContainsKey(archive.Name))
     {
         return;
     }
     this.archives.Add(archive.Name, archive);
 }
示例#4
0
        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);
            }
        }
示例#5
0
 public void RemoveAssetArchive(AssetArchive archive)
 {
     this.archives.Remove(archive.Name);
 }
示例#6
0
 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;
 }