Пример #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;
 }