import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("mi") @Implements("WorldMapArchiveLoader") public class WorldMapArchiveLoader { @ObfuscatedName("bk") @ObfuscatedSignature( signature = "Liv;" ) static StudioGame field3965; @ObfuscatedName("w") @Export("cacheName") String cacheName; @ObfuscatedName("v") @ObfuscatedSignature( signature = "Liy;" ) @Export("archive") AbstractArchive archive; @ObfuscatedName("q") @ObfuscatedGetter( intValue = 2095920673 ) @Export("percentLoaded") int percentLoaded; @ObfuscatedName("z") @Export("loaded") boolean loaded; @ObfuscatedSignature( signature = "(Liy;)V" ) WorldMapArchiveLoader(AbstractArchive var1) { this.percentLoaded = 0; this.loaded = false; this.archive = var1; } @ObfuscatedName("x") @ObfuscatedSignature( signature = "(Ljava/lang/String;I)V", garbageValue = "-2004873028" ) @Export("reset") void reset(String var1) { if (var1 != null && !var1.isEmpty()) { if (var1 != this.cacheName) { this.cacheName = var1; this.percentLoaded = 0; this.loaded = false; this.load(); } } } @ObfuscatedName("m") @ObfuscatedSignature( signature = "(I)I", garbageValue = "-1654768805" ) @Export("load") int load() { if (this.percentLoaded < 33) { if (!this.archive.tryLoadFileByNames(WorldMapCacheName.field340.name, this.cacheName)) { return this.percentLoaded; } this.percentLoaded = 33; } if (this.percentLoaded == 33) { if (this.archive.isValidFileName(WorldMapCacheName.field341.name, this.cacheName) && !this.archive.tryLoadFileByNames(WorldMapCacheName.field341.name, this.cacheName)) { return this.percentLoaded; } this.percentLoaded = 66; } if (this.percentLoaded == 66) { if (!this.archive.tryLoadFileByNames(this.cacheName, WorldMapCacheName.field343.name)) { return this.percentLoaded; } this.percentLoaded = 100; this.loaded = true; } return this.percentLoaded; } @ObfuscatedName("k") @ObfuscatedSignature( signature = "(B)Z", garbageValue = "30" ) @Export("isLoaded") boolean isLoaded() { return this.loaded; } @ObfuscatedName("d") @ObfuscatedSignature( signature = "(B)I", garbageValue = "16" ) @Export("getPercentLoaded") int getPercentLoaded() { return this.percentLoaded; } }