chore: rev 193
This commit is contained in:
@@ -1,89 +1,128 @@
|
||||
import java.util.Comparator;
|
||||
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;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("r")
|
||||
@Implements("GrandExchangeOfferUnitPriceComparator")
|
||||
final class GrandExchangeOfferUnitPriceComparator implements Comparator {
|
||||
@ObfuscatedName("kt")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 2060435919
|
||||
)
|
||||
@Export("Client_plane")
|
||||
static int Client_plane;
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("bx")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ly;Ly;S)I",
|
||||
garbageValue = "-21475"
|
||||
descriptor = "Lmu;"
|
||||
)
|
||||
@Export("loginType")
|
||||
static LoginType loginType;
|
||||
@ObfuscatedName("do")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lil;"
|
||||
)
|
||||
@Export("archive9")
|
||||
static Archive archive9;
|
||||
@ObfuscatedName("dz")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lil;"
|
||||
)
|
||||
@Export("archive13")
|
||||
static Archive archive13;
|
||||
@ObfuscatedName("ha")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Llm;"
|
||||
)
|
||||
@Export("mapMarkerSprites")
|
||||
static Sprite[] mapMarkerSprites;
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(La;La;I)I",
|
||||
garbageValue = "1020581698"
|
||||
)
|
||||
@Export("compare_bridged")
|
||||
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
|
||||
return var1.grandExchangeOffer.unitPrice < var2.grandExchangeOffer.unitPrice ? -1 : (var2.grandExchangeOffer.unitPrice == var1.grandExchangeOffer.unitPrice ? 0 : 1); // L: 43
|
||||
return var1.grandExchangeOffer.unitPrice < var2.grandExchangeOffer.unitPrice ? -1 : (var2.grandExchangeOffer.unitPrice == var1.grandExchangeOffer.unitPrice ? 0 : 1);
|
||||
}
|
||||
|
||||
public int compare(Object var1, Object var2) {
|
||||
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 47
|
||||
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
|
||||
}
|
||||
|
||||
public boolean equals(Object var1) {
|
||||
return super.equals(var1); // L: 51
|
||||
return super.equals(var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BILjava/lang/CharSequence;I)I",
|
||||
garbageValue = "2085161041"
|
||||
descriptor = "(Lhe;II)V",
|
||||
garbageValue = "1825626795"
|
||||
)
|
||||
public static int method219(byte[] var0, int var1, CharSequence var2) {
|
||||
int var3 = var2.length(); // L: 9
|
||||
int var4 = var1; // L: 10
|
||||
|
||||
for (int var5 = 0; var5 < var3; ++var5) { // L: 11
|
||||
char var6 = var2.charAt(var5); // L: 12
|
||||
if (var6 <= 127) { // L: 13
|
||||
var0[var4++] = (byte)var6; // L: 14
|
||||
} else if (var6 <= 2047) { // L: 16
|
||||
var0[var4++] = (byte)(192 | var6 >> 6);
|
||||
var0[var4++] = (byte)(128 | var6 & '?');
|
||||
} else {
|
||||
var0[var4++] = (byte)(224 | var6 >> '\f'); // L: 21
|
||||
var0[var4++] = (byte)(128 | var6 >> 6 & 63); // L: 22
|
||||
var0[var4++] = (byte)(128 | var6 & '?'); // L: 23
|
||||
@Export("Widget_setKeyIgnoreHeld")
|
||||
static final void Widget_setKeyIgnoreHeld(Widget var0, int var1) {
|
||||
if (var0.field2649 == null) {
|
||||
throw new RuntimeException();
|
||||
} else {
|
||||
if (var0.field2684 == null) {
|
||||
var0.field2684 = new int[var0.field2649.length];
|
||||
}
|
||||
}
|
||||
|
||||
return var4 - var1; // L: 26
|
||||
var0.field2684[var1] = Integer.MAX_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Liw;B)V",
|
||||
garbageValue = "1"
|
||||
descriptor = "(ILcs;ZI)I",
|
||||
garbageValue = "-613147121"
|
||||
)
|
||||
public static void method211(AbstractArchive var0) {
|
||||
InvDefinition.InvDefinition_archive = var0; // L: 17
|
||||
} // L: 18
|
||||
|
||||
@ObfuscatedName("kc")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/lang/String;B)Ljava/lang/String;",
|
||||
garbageValue = "-56"
|
||||
)
|
||||
static String method218(String var0) {
|
||||
PlayerType[] var1 = WorldMapLabelSize.PlayerType_values(); // L: 11676
|
||||
|
||||
for (int var2 = 0; var2 < var1.length; ++var2) { // L: 11677
|
||||
PlayerType var3 = var1[var2]; // L: 11678
|
||||
if (var3.modIcon != -1 && var0.startsWith(PrivateChatMode.method6034(var3.modIcon))) { // L: 11680 11681
|
||||
var0 = var0.substring(6 + Integer.toString(var3.modIcon).length()); // L: 11682
|
||||
break;
|
||||
}
|
||||
static int method200(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264;
|
||||
if (var0 == ScriptOpcodes.CC_GETSCROLLX) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLY) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTEXT) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELZOOM) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelZoom;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_X) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Z) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Y) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTRANSTOP) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyTop;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTRANSBOT) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyBot;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETFILLCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color2;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETFILLMODE) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELTRANSPARENT) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
|
||||
return var0; // L: 11689
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user