Ejemplo n.º 1
0
        public StringIndex(CacheFile cache)
        {
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            this.cache = cache;
            items      = new string[cache.Header.StringCount];
        }
Ejemplo n.º 2
0
        public TagIndex(CacheFile cache)
        {
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            this.cache = cache;
            items      = new Dictionary <int, IndexItem>();
            sysItems   = new Dictionary <string, IndexItem>();
        }
Ejemplo n.º 3
0
        public BSPAddressTranslator(CacheFile cache, int id)
        {
            var bspData = cache.TagIndex.GetGlobalTag("scnr").ReadMetadata <scenario>().StructureBsps.SingleOrDefault(i => (i.BspReference.TagId) == id);

            if (bspData == null)
            {
                throw new InvalidOperationException();
            }

            data = bspData;
        }
Ejemplo n.º 4
0
 public IndexItem(CacheFile cache)
 {
     this.cache = cache;
 }
Ejemplo n.º 5
0
 public TagAddressTranslator(CacheFile cache)
 {
     this.cache = cache;
 }
 public HeaderAddressTranslator(CacheFile cache)
 {
     this.cache = cache;
 }