project: rev 192

This commit is contained in:
ThatGamerBlue
2020-10-21 14:30:57 +02:00
parent 47583ab7c6
commit 88599e5dd3
355 changed files with 53400 additions and 49134 deletions

View File

@@ -1,136 +1,170 @@
import java.io.IOException;
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("ao")
@Implements("WorldMapSection0")
public class WorldMapSection0 implements WorldMapSection {
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = -465345147
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "Lap;"
)
@Export("worldMapEvent")
static WorldMapEvent worldMapEvent;
@ObfuscatedName("hb")
@ObfuscatedSignature(
descriptor = "[Lle;"
)
@Export("scrollBarSprites")
static IndexedSprite[] scrollBarSprites;
@ObfuscatedName("f")
@ObfuscatedGetter(
intValue = 1900849309
)
@Export("oldZ")
int oldZ;
@ObfuscatedName("k")
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = -202719925
intValue = -1837492707
)
@Export("newZ")
int newZ;
@ObfuscatedName("s")
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = 47110693
intValue = 1798651577
)
@Export("oldX")
int oldX;
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = -1315329307
)
int oldY;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = -445154313
)
int newX;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = -1054372917
)
int newY;
@ObfuscatedName("x")
@ObfuscatedGetter(
intValue = 755868073
)
int oldChunkXLow;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = -1795067773
)
int oldChunkYLow;
@ObfuscatedName("g")
@ObfuscatedGetter(
intValue = -662709525
)
int oldChunkXHigh;
@ObfuscatedName("m")
@ObfuscatedGetter(
intValue = -1849440565
intValue = 921187823
)
@Export("oldY")
int oldY;
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = -131099529
)
@Export("newX")
int newX;
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = 2025421843
)
@Export("newY")
int newY;
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = -1814738027
)
@Export("oldChunkXLow")
int oldChunkXLow;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1792733085
)
@Export("oldChunkYLow")
int oldChunkYLow;
@ObfuscatedName("u")
@ObfuscatedGetter(
intValue = -1592563299
)
@Export("oldChunkXHigh")
int oldChunkXHigh;
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = -1478309445
)
@Export("oldChunkYHigh")
int oldChunkYHigh;
@ObfuscatedName("e")
@ObfuscatedGetter(
intValue = 908411651
)
@Export("newChunkXLow")
int newChunkXLow;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 1036645465
)
@Export("newChunkYLow")
int newChunkYLow;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1861847067
)
int newChunkXLow;
@ObfuscatedName("d")
@ObfuscatedGetter(
intValue = 1830088993
)
int newChunkYLow;
@ObfuscatedName("h")
@ObfuscatedGetter(
intValue = -878235337
intValue = 1518275853
)
@Export("newChunkXHigh")
int newChunkXHigh;
@ObfuscatedName("a")
@ObfuscatedName("x")
@ObfuscatedGetter(
intValue = -2049654615
intValue = -246372361
)
@Export("newChunkYHigh")
int newChunkYHigh;
WorldMapSection0() {
} // L: 22
@ObfuscatedName("z")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "(Lar;B)V",
garbageValue = "100"
descriptor = "(Lak;I)V",
garbageValue = "-1645245778"
)
@Export("expandBounds")
public void expandBounds(WorldMapArea var1) {
if (var1.regionLowX > this.newX) { // L: 25
if (var1.regionLowX > this.newX) {
var1.regionLowX = this.newX;
}
if (var1.regionHighX < this.newX) {
var1.regionHighX = this.newX; // L: 26
var1.regionHighX = this.newX;
}
if (var1.regionLowY > this.newY) { // L: 27
if (var1.regionLowY > this.newY) {
var1.regionLowY = this.newY;
}
if (var1.regionHighY < this.newY) { // L: 28
if (var1.regionHighY < this.newY) {
var1.regionHighY = this.newY;
}
} // L: 29
}
@ObfuscatedName("k")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(IIII)Z",
garbageValue = "-339896458"
descriptor = "(IIIB)Z",
garbageValue = "51"
)
@Export("containsCoord")
public boolean containsCoord(int var1, int var2, int var3) {
if (var1 >= this.oldZ && var1 < this.oldZ + this.newZ) { // L: 32
return var2 >= (this.oldX << 6) + (this.oldChunkXLow << 3) && var2 <= (this.oldX << 6) + (this.oldChunkXHigh << 3) + 7 && var3 >= (this.oldY << 6) + (this.oldChunkYLow << 3) && var3 <= (this.oldY << 6) + (this.oldChunkYHigh << 3) + 7; // L: 35
if (var1 >= this.oldZ && var1 < this.oldZ + this.newZ) {
return var2 >= (this.oldX << 6) + (this.oldChunkXLow << 3) && var2 <= (this.oldX << 6) + (this.oldChunkXHigh << 3) + 7 && var3 >= (this.oldY << 6) + (this.oldChunkYLow << 3) && var3 <= (this.oldY << 6) + (this.oldChunkYHigh << 3) + 7;
} else {
return false; // L: 33
return false;
}
}
@ObfuscatedName("s")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(III)Z",
garbageValue = "-2135820245"
descriptor = "(IIB)Z",
garbageValue = "10"
)
@Export("containsPosition")
public boolean containsPosition(int var1, int var2) {
return var1 >= (this.newX << 6) + (this.newChunkXLow << 3) && var1 <= (this.newX << 6) + (this.newChunkXHigh << 3) + 7 && var2 >= (this.newY << 6) + (this.newChunkYLow << 3) && var2 <= (this.newY << 6) + (this.newChunkYHigh << 3) + 7; // L: 39
}
@ObfuscatedName("t")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(IIII)[I",
garbageValue = "-1761492451"
descriptor = "(IIIB)[I",
garbageValue = "-25"
)
@Export("getBorderTileLengths")
public int[] getBorderTileLengths(int var1, int var2, int var3) {
if (!this.containsCoord(var1, var2, var3)) {
if (!this.containsCoord(var1, var2, var3)) { // L: 43
return null; // L: 44
} else {
int[] var4 = new int[]{var2 + (this.newX * 64 - this.oldX * 64) + (this.newChunkXLow * 8 - this.oldChunkXLow * 8), var3 + (this.newY * 64 - this.oldY * 64) + (this.newChunkYLow * 8 - this.oldChunkYLow * 8)}; // L: 46 47 48
@@ -138,11 +172,12 @@ public class WorldMapSection0 implements WorldMapSection {
}
}
@ObfuscatedName("i")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(III)Lhg;",
garbageValue = "-1553504587"
descriptor = "(IIB)Lhw;",
garbageValue = "1"
)
@Export("coord")
public Coord coord(int var1, int var2) {
if (!this.containsPosition(var1, var2)) { // L: 53
return null; // L: 54
@@ -153,11 +188,12 @@ public class WorldMapSection0 implements WorldMapSection {
}
}
@ObfuscatedName("o")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(Lkf;I)V",
garbageValue = "2144381737"
descriptor = "(Lkb;I)V",
garbageValue = "-222098123"
)
@Export("read")
public void read(Buffer var1) {
this.oldZ = var1.readUnsignedByte(); // L: 62
this.newZ = var1.readUnsignedByte(); // L: 63
@@ -176,29 +212,111 @@ public class WorldMapSection0 implements WorldMapSection {
this.postRead(); // L: 76
} // L: 77
@ObfuscatedName("x")
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "60"
descriptor = "(I)V",
garbageValue = "-2087257379"
)
@Export("postRead")
void postRead() {
} // L: 79
@ObfuscatedName("z")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "(IS)Liv;",
garbageValue = "15751"
descriptor = "(II)Lco;",
garbageValue = "717728742"
)
public static WorldMapElement WorldMapElement_get(int var0) {
return var0 >= 0 && var0 < WorldMapElement.WorldMapElement_cached.length && WorldMapElement.WorldMapElement_cached[var0] != null ? WorldMapElement.WorldMapElement_cached[var0] : new WorldMapElement(var0); // L: 42 43
@Export("getScript")
static Script getScript(int var0) {
Script var1 = (Script)Script.Script_cached.get((long)var0); // L: 25
if (var1 != null) { // L: 26
return var1;
} else {
byte[] var2 = ViewportMouse.archive12.takeFile(var0, 0); // L: 27
if (var2 == null) { // L: 28
return null; // L: 29
} else {
var1 = ClientPacket.newScript(var2); // L: 31
Script.Script_cached.put(var1, (long)var0); // L: 32
return var1;
}
}
}
@ObfuscatedName("eh")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(B)Lmx;",
garbageValue = "122"
descriptor = "(Lll;ILjava/lang/String;B)Ljava/lang/String;",
garbageValue = "-111"
)
static WorldMap getWorldMap() {
return Message.worldMap; // L: 665
static String method307(IterableNodeHashTable var0, int var1, String var2) {
if (var0 == null) { // L: 33
return var2;
} else {
ObjectNode var3 = (ObjectNode)var0.get((long)var1); // L: 34
return var3 == null ? var2 : (String)var3.obj; // L: 35 36
}
}
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(ZI)V",
garbageValue = "1132603315"
)
public static void method323(boolean var0) {
if (NetCache.NetCache_socket != null) { // L: 193
try {
Buffer var1 = new Buffer(4); // L: 195
var1.writeByte(var0 ? 2 : 3); // L: 196
var1.writeMedium(0); // L: 197
NetCache.NetCache_socket.write(var1.array, 0, 4); // L: 198
} catch (IOException var4) {
try {
NetCache.NetCache_socket.close(); // L: 202
} catch (Exception var3) { // L: 204
}
++NetCache.NetCache_ioExceptions; // L: 205
NetCache.NetCache_socket = null; // L: 206
}
}
} // L: 208
@ObfuscatedName("e")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;B)Ljava/lang/String;",
garbageValue = "3"
)
public static String method328(String var0) {
int var1 = var0.length(); // L: 155
char[] var2 = new char[var1]; // L: 156
byte var3 = 2; // L: 157
for (int var4 = 0; var4 < var1; ++var4) { // L: 158
char var5 = var0.charAt(var4); // L: 159
if (var3 == 0) { // L: 160
var5 = Character.toLowerCase(var5);
} else if (var3 == 2 || Character.isUpperCase(var5)) { // L: 161
var5 = WorldMapSection2.method426(var5);
}
if (Character.isLetter(var5)) { // L: 162
var3 = 0;
} else if (var5 != '.' && var5 != '?' && var5 != '!') { // L: 163
if (Character.isSpaceChar(var5)) { // L: 164
if (var3 != 2) { // L: 165
var3 = 1;
}
} else {
var3 = 1; // L: 167
}
} else {
var3 = 2;
}
var2[var4] = var5; // L: 168
}
return new String(var2); // L: 170
}
}