client: rev 198 (#3014)
* client: rev 198 * client: checkstyle Co-authored-by: therealnull <therealnull@gmail.com>
This commit is contained in:
@@ -3,96 +3,120 @@ import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("fo")
|
||||
@ObfuscatedName("fj")
|
||||
@Implements("WorldMapData_0")
|
||||
public class WorldMapData_0 extends AbstractWorldMapData {
|
||||
WorldMapData_0() {
|
||||
} // L: 6
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lnt;B)V",
|
||||
garbageValue = "68"
|
||||
descriptor = "(Lnv;I)V",
|
||||
garbageValue = "-1866643170"
|
||||
)
|
||||
@Export("init")
|
||||
void init(Buffer var1) {
|
||||
int var2 = var1.readUnsignedByte(); // L: 9
|
||||
if (var2 != WorldMapID.field2111.value) { // L: 10
|
||||
throw new IllegalStateException(""); // L: 11
|
||||
int var2 = var1.readUnsignedByte();
|
||||
if (var2 != WorldMapID.field2095.value) {
|
||||
throw new IllegalStateException("");
|
||||
} else {
|
||||
super.minPlane = var1.readUnsignedByte(); // L: 13
|
||||
super.planes = var1.readUnsignedByte(); // L: 14
|
||||
super.regionXLow = var1.readUnsignedShort(); // L: 15
|
||||
super.regionYLow = var1.readUnsignedShort(); // L: 16
|
||||
super.regionX = var1.readUnsignedShort(); // L: 17
|
||||
super.regionY = var1.readUnsignedShort(); // L: 18
|
||||
super.groupId = var1.method6630(); // L: 19
|
||||
super.fileId = var1.method6630(); // L: 20
|
||||
super.minPlane = var1.readUnsignedByte();
|
||||
super.planes = var1.readUnsignedByte();
|
||||
super.regionXLow = var1.readUnsignedShort();
|
||||
super.regionYLow = var1.readUnsignedShort();
|
||||
super.regionX = var1.readUnsignedShort();
|
||||
super.regionY = var1.readUnsignedShort();
|
||||
super.groupId = var1.method6674();
|
||||
super.fileId = var1.method6674();
|
||||
}
|
||||
} // L: 21
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lnt;I)V",
|
||||
garbageValue = "-1563875465"
|
||||
descriptor = "(Lnv;I)V",
|
||||
garbageValue = "-1489554607"
|
||||
)
|
||||
@Export("readGeography")
|
||||
void readGeography(Buffer var1) {
|
||||
super.planes = Math.min(super.planes, 4); // L: 24
|
||||
super.floorUnderlayIds = new short[1][64][64]; // L: 25
|
||||
super.floorOverlayIds = new short[super.planes][64][64]; // L: 26
|
||||
super.field2068 = new byte[super.planes][64][64]; // L: 27
|
||||
super.field2074 = new byte[super.planes][64][64]; // L: 28
|
||||
super.decorations = new WorldMapDecoration[super.planes][64][64][]; // L: 29
|
||||
int var2 = var1.readUnsignedByte(); // L: 30
|
||||
if (var2 != class180.field2102.value) { // L: 31
|
||||
throw new IllegalStateException(""); // L: 32
|
||||
super.planes = Math.min(super.planes, 4);
|
||||
super.floorUnderlayIds = new short[1][64][64];
|
||||
super.floorOverlayIds = new short[super.planes][64][64];
|
||||
super.field2056 = new byte[super.planes][64][64];
|
||||
super.field2057 = new byte[super.planes][64][64];
|
||||
super.decorations = new WorldMapDecoration[super.planes][64][64][];
|
||||
int var2 = var1.readUnsignedByte();
|
||||
if (var2 != class181.field2090.value) {
|
||||
throw new IllegalStateException("");
|
||||
} else {
|
||||
int var3 = var1.readUnsignedByte(); // L: 34
|
||||
int var4 = var1.readUnsignedByte(); // L: 35
|
||||
if (var3 == super.regionX && var4 == super.regionY) { // L: 36
|
||||
for (int var5 = 0; var5 < 64; ++var5) { // L: 39
|
||||
for (int var6 = 0; var6 < 64; ++var6) { // L: 40
|
||||
this.readTile(var5, var6, var1); // L: 41
|
||||
int var3 = var1.readUnsignedByte();
|
||||
int var4 = var1.readUnsignedByte();
|
||||
if (var3 == super.regionX && var4 == super.regionY) {
|
||||
for (int var5 = 0; var5 < 64; ++var5) {
|
||||
for (int var6 = 0; var6 < 64; ++var6) {
|
||||
this.readTile(var5, var6, var1);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
throw new IllegalStateException(""); // L: 37
|
||||
throw new IllegalStateException("");
|
||||
}
|
||||
}
|
||||
} // L: 44
|
||||
|
||||
public int hashCode() {
|
||||
return super.regionX | super.regionY << 8; // L: 55
|
||||
}
|
||||
|
||||
public boolean equals(Object var1) {
|
||||
if (!(var1 instanceof WorldMapData_0)) { // L: 47
|
||||
return false; // L: 48
|
||||
if (!(var1 instanceof WorldMapData_0)) {
|
||||
return false;
|
||||
} else {
|
||||
WorldMapData_0 var2 = (WorldMapData_0)var1; // L: 50
|
||||
return var2.regionX == super.regionX && super.regionY == var2.regionY; // L: 51
|
||||
WorldMapData_0 var2 = (WorldMapData_0)var1;
|
||||
return var2.regionX == super.regionX && super.regionY == var2.regionY;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ak")
|
||||
public int hashCode() {
|
||||
return super.regionX | super.regionY << 8;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ag")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILcf;ZI)I",
|
||||
garbageValue = "-1824219320"
|
||||
descriptor = "(ILbd;ZB)I",
|
||||
garbageValue = "100"
|
||||
)
|
||||
static int method3267(int var0, Script var1, boolean var2) {
|
||||
if (var0 != 3700 && var0 != 3701) { // L: 2442
|
||||
if (var0 == 3702) { // L: 2447
|
||||
++ChatChannel.Interpreter_intStackSize; // L: 2448
|
||||
return 1; // L: 2449
|
||||
} else {
|
||||
return 2; // L: 2451
|
||||
}
|
||||
static int method3227(int var0, Script var1, boolean var2) {
|
||||
if (var0 >= 7200 && var0 < 7204) {
|
||||
Interpreter.Interpreter_intStackSize -= 5;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else if (var0 == 7204) {
|
||||
Interpreter.Interpreter_intStackSize -= 6;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else if (var0 >= 7205 && var0 < 7209) {
|
||||
Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else if (var0 == 7209) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else if (var0 >= 7210 && var0 < 7214) {
|
||||
--Interpreter.Interpreter_intStackSize;
|
||||
return 1;
|
||||
} else if (var0 == 7214) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
return 1;
|
||||
} else {
|
||||
--ChatChannel.Interpreter_intStackSize; // L: 2443
|
||||
--UserComparator9.Interpreter_stringStackSize; // L: 2444
|
||||
return 1; // L: 2445
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jm")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(IIB)V",
|
||||
garbageValue = "-68"
|
||||
)
|
||||
@Export("runIntfCloseListeners")
|
||||
static final void runIntfCloseListeners(int var0, int var1) {
|
||||
if (Huffman.loadInterface(var0)) {
|
||||
HealthBar.runComponentCloseListeners(Widget.Widget_interfaceComponents[var0], var1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user