use of net.runelite.cache.fs.Archive in project runelite by runelite.
the class SpriteManager method load.
public void load() throws IOException {
Storage storage = store.getStorage();
Index index = store.getIndex(IndexType.SPRITES);
for (Archive a : index.getArchives()) {
byte[] contents = a.decompress(storage.loadArchive(a));
SpriteLoader loader = new SpriteLoader();
SpriteDefinition[] defs = loader.load(a.getArchiveId(), contents);
for (SpriteDefinition sprite : defs) {
sprites.put(sprite.getId(), sprite);
}
}
}
Aggregations