chore: rev 188

This commit is contained in:
Owain van Brakel
2020-01-29 14:20:08 +01:00
parent c785d0015b
commit add4ca8005
357 changed files with 41366 additions and 41447 deletions

View File

@@ -3,65 +3,66 @@ 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("cx")
@ObfuscatedName("cz")
@Implements("Players")
public class Players {
@ObfuscatedName("y")
static byte[] field1230;
@ObfuscatedName("w")
static byte[] field1231;
@ObfuscatedName("p")
@ObfuscatedName("o")
static byte[] field1236;
@ObfuscatedName("e")
static byte[] field1237;
@ObfuscatedName("i")
@ObfuscatedSignature(
signature = "[Lkq;"
signature = "[Lkp;"
)
static Buffer[] field1228;
@ObfuscatedName("b")
static Buffer[] field1235;
@ObfuscatedName("g")
@ObfuscatedGetter(
intValue = 563300255
intValue = 896237733
)
@Export("Players_count")
static int Players_count;
@ObfuscatedName("e")
@ObfuscatedName("d")
@Export("Players_indices")
static int[] Players_indices;
@ObfuscatedName("x")
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = -2029432023
intValue = 1595990081
)
@Export("Players_emptyIdxCount")
static int Players_emptyIdxCount;
@ObfuscatedName("a")
@ObfuscatedName("j")
@Export("Players_emptyIndices")
static int[] Players_emptyIndices;
@ObfuscatedName("d")
@ObfuscatedName("m")
@Export("Players_regions")
static int[] Players_regions;
@ObfuscatedName("c")
@ObfuscatedName("p")
@Export("Players_orientations")
static int[] Players_orientations;
@ObfuscatedName("o")
@ObfuscatedName("h")
@Export("Players_targetIndices")
static int[] Players_targetIndices;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = -1629507645
intValue = -564068269
)
@Export("Players_pendingUpdateCount")
static int Players_pendingUpdateCount;
@ObfuscatedName("k")
@ObfuscatedName("n")
@Export("Players_pendingUpdateIndices")
static int[] Players_pendingUpdateIndices;
@ObfuscatedName("s")
@ObfuscatedName("x")
@ObfuscatedSignature(
signature = "Lkq;"
signature = "Lkp;"
)
static Buffer field1242;
static Buffer field1248;
static {
field1230 = new byte[2048];
field1231 = new byte[2048];
field1228 = new Buffer[2048];
field1236 = new byte[2048];
field1237 = new byte[2048];
field1235 = new Buffer[2048];
Players_count = 0;
Players_indices = new int[2048];
Players_emptyIdxCount = 0;
@@ -71,53 +72,138 @@ public class Players {
Players_targetIndices = new int[2048];
Players_pendingUpdateCount = 0;
Players_pendingUpdateIndices = new int[2048];
field1242 = new Buffer(new byte[5000]);
field1248 = new Buffer(new byte[5000]);
}
@ObfuscatedName("f")
@ObfuscatedName("c")
@ObfuscatedSignature(
signature = "([I[II)V",
garbageValue = "635493100"
signature = "(B)V",
garbageValue = "1"
)
public static void method2161(int[] var0, int[] var1) {
if (var0 != null && var1 != null) {
ByteArrayPool.ByteArrayPool_alternativeSizes = var0;
Interpreter.ByteArrayPool_altSizeArrayCounts = new int[var0.length];
ByteArrayPool.ByteArrayPool_arrays = new byte[var0.length][][];
static void method2179() {
Tiles.field502 = null;
Tiles.field514 = null;
Tiles.field507 = null;
Tiles.field518 = null;
UrlRequest.field1940 = null;
InterfaceParent.field565 = null;
Tiles.field509 = null;
class268.Tiles_hue = null;
HorizontalAlignment.Tiles_saturation = null;
class30.Tiles_lightness = null;
class40.Tiles_hueMultiplier = null;
TileItemPile.field1529 = null;
}
for (int var2 = 0; var2 < ByteArrayPool.ByteArrayPool_alternativeSizes.length; ++var2) {
ByteArrayPool.ByteArrayPool_arrays[var2] = new byte[var1[var2]][];
@ObfuscatedName("d")
@ObfuscatedSignature(
signature = "(ILce;ZB)I",
garbageValue = "41"
)
static int method2203(int var0, Script var1, boolean var2) {
Widget var3;
if (var0 >= 2000) {
var0 -= 1000;
var3 = Varps.getWidget(Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize]);
} else {
var3 = var2 ? class186.field2331 : MidiPcmStream.field2444;
}
NPCDefinition.invalidateWidget(var3);
if (var0 != ScriptOpcodes.CC_SETOBJECT && var0 != ScriptOpcodes.CC_SETOBJECT_NONUM && var0 != ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM) {
if (var0 == ScriptOpcodes.CC_SETNPCHEAD) {
var3.modelType = 2;
var3.modelId = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_SETPLAYERHEAD_SELF) {
var3.modelType = 3;
var3.modelId = class192.localPlayer.appearance.getChatHeadId();
return 1;
} else {
return 2;
}
} else {
class320.Interpreter_intStackSize -= 2;
int var4 = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize];
int var5 = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1];
var3.itemId = var4;
var3.itemQuantity = var5;
ItemDefinition var6 = HealthBarDefinition.ItemDefinition_get(var4);
var3.modelAngleX = var6.xan2d;
var3.modelAngleY = var6.yan2d;
var3.modelAngleZ = var6.zan2d;
var3.modelOffsetX = var6.offsetX2d;
var3.modelOffsetY = var6.offsetY2d;
var3.modelZoom = var6.zoom2d;
if (var0 == ScriptOpcodes.CC_SETOBJECT_NONUM) {
var3.itemQuantityMode = 0;
} else if (var0 == ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM | 1 == var6.isStackable) {
var3.itemQuantityMode = 1;
} else {
var3.itemQuantityMode = 2;
}
} else {
ByteArrayPool.ByteArrayPool_alternativeSizes = null;
Interpreter.ByteArrayPool_altSizeArrayCounts = null;
ByteArrayPool.ByteArrayPool_arrays = null;
if (var3.field2627 > 0) {
var3.modelZoom = var3.modelZoom * 32 / var3.field2627;
} else if (var3.rawWidth > 0) {
var3.modelZoom = var3.modelZoom * 32 / var3.rawWidth;
}
return 1;
}
}
@ObfuscatedName("ax")
@ObfuscatedName("a")
@ObfuscatedSignature(
signature = "(II)V",
garbageValue = "98747389"
signature = "(ILce;ZI)I",
garbageValue = "-603173589"
)
@Export("runWidgetOnLoadListener")
static void runWidgetOnLoadListener(int var0) {
if (var0 != -1) {
if (MusicPatch.loadInterface(var0)) {
Widget[] var1 = UserComparator7.Widget_interfaceComponents[var0];
for (int var2 = 0; var2 < var1.length; ++var2) {
Widget var3 = var1[var2];
if (var3.onLoad != null) {
ScriptEvent var4 = new ScriptEvent();
var4.widget = var3;
var4.args = var3.onLoad;
GrandExchangeEvents.runScript(var4, 5000000);
}
static int method2200(int var0, Script var1, boolean var2) {
Widget var3 = Varps.getWidget(Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize]);
if (var0 == ScriptOpcodes.IF_GETTARGETMASK) {
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = class83.method2108(WorldMapIcon_0.getWidgetClickMask(var3));
return 1;
} else if (var0 != ScriptOpcodes.IF_GETOP) {
if (var0 == ScriptOpcodes.IF_GETOPBASE) {
if (var3.dataText == null) {
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = "";
} else {
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var3.dataText;
}
return 1;
} else {
return 2;
}
} else {
int var4 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
--var4;
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) {
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var3.actions[var4];
} else {
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = "";
}
return 1;
}
}
@ObfuscatedName("jo")
@ObfuscatedSignature(
signature = "(I)Z",
garbageValue = "1574244944"
)
static boolean method2201() {
return Client.tapToDrop || KeyHandler.KeyHandler_pressedKeys[81];
}
@ObfuscatedName("kb")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "-1351198777"
)
static final void method2189() {
Client.field823 = Client.cycleCntr;
FileSystem.ClanChat_inClanChat = true;
}
}