chore: rev 190
This commit is contained in:
@@ -4,106 +4,112 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("io")
|
||||
@ObfuscatedName("ih")
|
||||
@Implements("WorldMapElement")
|
||||
public class WorldMapElement extends DualNode {
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Liy;"
|
||||
signature = "Lic;"
|
||||
)
|
||||
@Export("WorldMapElement_archive")
|
||||
public static AbstractArchive WorldMapElement_archive;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lio;"
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1135374529
|
||||
)
|
||||
@Export("WorldMapElement_cached")
|
||||
public static WorldMapElement[] WorldMapElement_cached;
|
||||
@ObfuscatedName("d")
|
||||
@Export("WorldMapElement_count")
|
||||
public static int WorldMapElement_count;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Leg;"
|
||||
signature = "Lec;"
|
||||
)
|
||||
@Export("WorldMapElement_cachedSprites")
|
||||
static EvictingDualNodeHashTable WorldMapElement_cachedSprites;
|
||||
@ObfuscatedName("w")
|
||||
public static EvictingDualNodeHashTable WorldMapElement_cachedSprites;
|
||||
@ObfuscatedName("hz")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Llh;"
|
||||
)
|
||||
@Export("scrollBarSprites")
|
||||
static IndexedSprite[] scrollBarSprites;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1778455375
|
||||
intValue = 712564113
|
||||
)
|
||||
@Export("objectId")
|
||||
public final int objectId;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1839539911
|
||||
intValue = 211021913
|
||||
)
|
||||
@Export("sprite1")
|
||||
public int sprite1;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1328409781
|
||||
intValue = 492639717
|
||||
)
|
||||
@Export("sprite2")
|
||||
int sprite2;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("u")
|
||||
@Export("name")
|
||||
public String name;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -66498181
|
||||
intValue = -1414394937
|
||||
)
|
||||
public int field3216;
|
||||
@ObfuscatedName("e")
|
||||
public int field3251;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1404661325
|
||||
intValue = -1395285175
|
||||
)
|
||||
@Export("textSize")
|
||||
public int textSize;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("y")
|
||||
@Export("menuActions")
|
||||
public String[] menuActions;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("c")
|
||||
@Export("menuTargetName")
|
||||
public String menuTargetName;
|
||||
@ObfuscatedName("u")
|
||||
int[] field3220;
|
||||
@ObfuscatedName("h")
|
||||
int[] field3243;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 244845295
|
||||
intValue = 234759337
|
||||
)
|
||||
int field3221;
|
||||
@ObfuscatedName("g")
|
||||
int field3252;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1082888487
|
||||
intValue = -1681954435
|
||||
)
|
||||
int field3222;
|
||||
@ObfuscatedName("i")
|
||||
int field3242;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 677837161
|
||||
intValue = 407708591
|
||||
)
|
||||
int field3223;
|
||||
@ObfuscatedName("a")
|
||||
int field3254;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 639685945
|
||||
intValue = 345147075
|
||||
)
|
||||
int field3210;
|
||||
@ObfuscatedName("b")
|
||||
int field3255;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lje;"
|
||||
signature = "Ljc;"
|
||||
)
|
||||
@Export("horizontalAlignment")
|
||||
public HorizontalAlignment horizontalAlignment;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lie;"
|
||||
signature = "Lif;"
|
||||
)
|
||||
@Export("verticalAlignment")
|
||||
public VerticalAlignment verticalAlignment;
|
||||
@ObfuscatedName("r")
|
||||
int[] field3229;
|
||||
@ObfuscatedName("o")
|
||||
byte[] field3218;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("l")
|
||||
int[] field3258;
|
||||
@ObfuscatedName("t")
|
||||
byte[] field3259;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1088538707
|
||||
intValue = -524595041
|
||||
)
|
||||
@Export("category")
|
||||
public int category;
|
||||
@@ -117,20 +123,20 @@ public class WorldMapElement extends DualNode {
|
||||
this.sprite2 = -1;
|
||||
this.textSize = 0;
|
||||
this.menuActions = new String[5];
|
||||
this.field3221 = Integer.MAX_VALUE;
|
||||
this.field3222 = Integer.MAX_VALUE;
|
||||
this.field3223 = Integer.MIN_VALUE;
|
||||
this.field3210 = Integer.MIN_VALUE;
|
||||
this.field3252 = Integer.MAX_VALUE;
|
||||
this.field3242 = Integer.MAX_VALUE;
|
||||
this.field3254 = Integer.MIN_VALUE;
|
||||
this.field3255 = Integer.MIN_VALUE;
|
||||
this.horizontalAlignment = HorizontalAlignment.HorizontalAlignment_centered;
|
||||
this.verticalAlignment = VerticalAlignment.VerticalAlignment_centered;
|
||||
this.category = -1;
|
||||
this.objectId = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkb;B)V",
|
||||
garbageValue = "-115"
|
||||
signature = "(Lkn;B)V",
|
||||
garbageValue = "106"
|
||||
)
|
||||
@Export("decode")
|
||||
public void decode(Buffer var1) {
|
||||
@@ -144,21 +150,21 @@ public class WorldMapElement extends DualNode {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkb;II)V",
|
||||
garbageValue = "2055926497"
|
||||
signature = "(Lkn;II)V",
|
||||
garbageValue = "1696894212"
|
||||
)
|
||||
@Export("decodeNext")
|
||||
void decodeNext(Buffer var1, int var2) {
|
||||
if (var2 == 1) {
|
||||
this.sprite1 = var1.method5591();
|
||||
this.sprite1 = var1.method5843();
|
||||
} else if (var2 == 2) {
|
||||
this.sprite2 = var1.method5591();
|
||||
this.sprite2 = var1.method5843();
|
||||
} else if (var2 == 3) {
|
||||
this.name = var1.readStringCp1252NullTerminated();
|
||||
} else if (var2 == 4) {
|
||||
this.field3216 = var1.readMedium();
|
||||
this.field3251 = var1.readMedium();
|
||||
} else if (var2 == 5) {
|
||||
var1.readMedium();
|
||||
} else if (var2 == 6) {
|
||||
@@ -178,32 +184,32 @@ public class WorldMapElement extends DualNode {
|
||||
this.menuActions[var2 - 10] = var1.readStringCp1252NullTerminated();
|
||||
} else if (var2 == 15) {
|
||||
var3 = var1.readUnsignedByte();
|
||||
this.field3220 = new int[var3 * 2];
|
||||
this.field3243 = new int[var3 * 2];
|
||||
|
||||
int var4;
|
||||
for (var4 = 0; var4 < var3 * 2; ++var4) {
|
||||
this.field3220[var4] = var1.readShort();
|
||||
this.field3243[var4] = var1.readShort();
|
||||
}
|
||||
|
||||
var1.readInt();
|
||||
var4 = var1.readUnsignedByte();
|
||||
this.field3229 = new int[var4];
|
||||
this.field3258 = new int[var4];
|
||||
|
||||
int var5;
|
||||
for (var5 = 0; var5 < this.field3229.length; ++var5) {
|
||||
this.field3229[var5] = var1.readInt();
|
||||
for (var5 = 0; var5 < this.field3258.length; ++var5) {
|
||||
this.field3258[var5] = var1.readInt();
|
||||
}
|
||||
|
||||
this.field3218 = new byte[var3];
|
||||
this.field3259 = new byte[var3];
|
||||
|
||||
for (var5 = 0; var5 < var3; ++var5) {
|
||||
this.field3218[var5] = var1.readByte();
|
||||
this.field3259[var5] = var1.readByte();
|
||||
}
|
||||
} else if (var2 != 16) {
|
||||
if (var2 == 17) {
|
||||
this.menuTargetName = var1.readStringCp1252NullTerminated();
|
||||
} else if (var2 == 18) {
|
||||
var1.method5591();
|
||||
var1.method5843();
|
||||
} else if (var2 == 19) {
|
||||
this.category = var1.readUnsignedShort();
|
||||
} else if (var2 == 21) {
|
||||
@@ -218,47 +224,47 @@ public class WorldMapElement extends DualNode {
|
||||
var1.readShort();
|
||||
var1.readShort();
|
||||
} else if (var2 == 25) {
|
||||
var1.method5591();
|
||||
var1.method5843();
|
||||
} else if (var2 == 28) {
|
||||
var1.readUnsignedByte();
|
||||
} else if (var2 == 29) {
|
||||
this.horizontalAlignment = (HorizontalAlignment)GrandExchangeEvent.findEnumerated(NetFileRequest.method4244(), var1.readUnsignedByte());
|
||||
this.horizontalAlignment = (HorizontalAlignment)FaceNormal.findEnumerated(GrandExchangeOfferNameComparator.method207(), var1.readUnsignedByte());
|
||||
} else if (var2 == 30) {
|
||||
this.verticalAlignment = (VerticalAlignment)GrandExchangeEvent.findEnumerated(Coord.method4084(), var1.readUnsignedByte());
|
||||
this.verticalAlignment = (VerticalAlignment)FaceNormal.findEnumerated(class219.method4106(), var1.readUnsignedByte());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "1026224709"
|
||||
signature = "(B)V",
|
||||
garbageValue = "116"
|
||||
)
|
||||
public void method4466() {
|
||||
if (this.field3220 != null) {
|
||||
for (int var1 = 0; var1 < this.field3220.length; var1 += 2) {
|
||||
if (this.field3220[var1] < this.field3221) {
|
||||
this.field3221 = this.field3220[var1];
|
||||
} else if (this.field3220[var1] > this.field3223) {
|
||||
this.field3223 = this.field3220[var1];
|
||||
public void method4548() {
|
||||
if (this.field3243 != null) {
|
||||
for (int var1 = 0; var1 < this.field3243.length; var1 += 2) {
|
||||
if (this.field3243[var1] < this.field3252) {
|
||||
this.field3252 = this.field3243[var1];
|
||||
} else if (this.field3243[var1] > this.field3254) {
|
||||
this.field3254 = this.field3243[var1];
|
||||
}
|
||||
|
||||
if (this.field3220[var1 + 1] < this.field3222) {
|
||||
this.field3222 = this.field3220[var1 + 1];
|
||||
} else if (this.field3220[var1 + 1] > this.field3210) {
|
||||
this.field3210 = this.field3220[var1 + 1];
|
||||
if (this.field3243[var1 + 1] < this.field3242) {
|
||||
this.field3242 = this.field3243[var1 + 1];
|
||||
} else if (this.field3243[var1 + 1] > this.field3255) {
|
||||
this.field3255 = this.field3243[var1 + 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZI)Lla;",
|
||||
garbageValue = "2050095285"
|
||||
signature = "(ZI)Llz;",
|
||||
garbageValue = "-314713437"
|
||||
)
|
||||
@Export("getSpriteBool")
|
||||
public Sprite getSpriteBool(boolean var1) {
|
||||
@@ -266,10 +272,10 @@ public class WorldMapElement extends DualNode {
|
||||
return this.getSprite(var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Lla;",
|
||||
garbageValue = "122291326"
|
||||
signature = "(II)Llz;",
|
||||
garbageValue = "1760825025"
|
||||
)
|
||||
@Export("getSprite")
|
||||
Sprite getSprite(int var1) {
|
||||
@@ -280,7 +286,7 @@ public class WorldMapElement extends DualNode {
|
||||
if (var2 != null) {
|
||||
return var2;
|
||||
} else {
|
||||
var2 = MusicPatchNode2.SpriteBuffer_getSprite(WorldMapElement_archive, var1, 0);
|
||||
var2 = GameShell.SpriteBuffer_getSprite(WorldMapElement_archive, var1, 0);
|
||||
if (var2 != null) {
|
||||
WorldMapElement_cachedSprites.put(var2, (long)var1);
|
||||
}
|
||||
@@ -290,10 +296,10 @@ public class WorldMapElement extends DualNode {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "1436204675"
|
||||
garbageValue = "-1240109519"
|
||||
)
|
||||
@Export("getObjectId")
|
||||
public int getObjectId() {
|
||||
@@ -302,23 +308,51 @@ public class WorldMapElement extends DualNode {
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Lib;",
|
||||
garbageValue = "-973838819"
|
||||
signature = "(Lkn;Llf;I)Llf;",
|
||||
garbageValue = "1394866461"
|
||||
)
|
||||
@Export("KitDefinition_get")
|
||||
public static KitDefinition KitDefinition_get(int var0) {
|
||||
KitDefinition var1 = (KitDefinition)KitDefinition.KitDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
byte[] var2 = KitDefinition.KitDefinition_archive.takeFile(3, var0);
|
||||
var1 = new KitDefinition();
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2));
|
||||
@Export("readStringIntParameters")
|
||||
static final IterableNodeHashTable readStringIntParameters(Buffer var0, IterableNodeHashTable var1) {
|
||||
int var2 = var0.readUnsignedByte();
|
||||
int var3;
|
||||
if (var1 == null) {
|
||||
int var4 = var2 - 1;
|
||||
var4 |= var4 >>> 1;
|
||||
var4 |= var4 >>> 2;
|
||||
var4 |= var4 >>> 4;
|
||||
var4 |= var4 >>> 8;
|
||||
var4 |= var4 >>> 16;
|
||||
var3 = var4 + 1;
|
||||
var1 = new IterableNodeHashTable(var3);
|
||||
}
|
||||
|
||||
for (var3 = 0; var3 < var2; ++var3) {
|
||||
boolean var7 = var0.readUnsignedByte() == 1;
|
||||
int var5 = var0.readMedium();
|
||||
Object var6;
|
||||
if (var7) {
|
||||
var6 = new ObjectNode(var0.readStringCp1252NullTerminated());
|
||||
} else {
|
||||
var6 = new IntegerNode(var0.readInt());
|
||||
}
|
||||
|
||||
KitDefinition.KitDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
var1.put((Node)var6, (long)var5);
|
||||
}
|
||||
|
||||
return var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("aa")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILhg;ZI)V",
|
||||
garbageValue = "284772848"
|
||||
)
|
||||
static void method4566(int var0, Coord var1, boolean var2) {
|
||||
WorldMapArea var3 = ClanChat.getWorldMap().getMapArea(var0);
|
||||
int var4 = class60.localPlayer.plane;
|
||||
int var5 = (class60.localPlayer.x >> 7) + class182.baseX;
|
||||
int var6 = (class60.localPlayer.y >> 7) + SecureRandomFuture.baseY;
|
||||
Coord var7 = new Coord(var4, var5, var6);
|
||||
ClanChat.getWorldMap().method6538(var3, var7, var1, var2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user