public StringIndex(CacheFile cache) { if (cache == null) { throw new ArgumentNullException(nameof(cache)); } this.cache = cache; items = new string[cache.Header.StringCount]; }
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>(); }
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; }
public IndexItem(CacheFile cache) { this.cache = cache; }
public TagAddressTranslator(CacheFile cache) { this.cache = cache; }
public HeaderAddressTranslator(CacheFile cache) { this.cache = cache; }