rs-client/apis
This commit is contained in:
@@ -1,183 +1,144 @@
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
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("cq")
|
||||
@ObfuscatedName("cw")
|
||||
@Implements("Players")
|
||||
public class Players {
|
||||
@ObfuscatedName("q")
|
||||
static byte[] field731;
|
||||
@ObfuscatedName("w")
|
||||
static byte[] field732;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lgr;"
|
||||
)
|
||||
static Buffer[] field733;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -766468303
|
||||
)
|
||||
@Export("Players_count")
|
||||
static int Players_count;
|
||||
@ObfuscatedName("g")
|
||||
@Export("Players_indices")
|
||||
static int[] Players_indices;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 945250525
|
||||
)
|
||||
static int field734;
|
||||
@ObfuscatedName("e")
|
||||
static int[] field735;
|
||||
@ObfuscatedName("x")
|
||||
@Export("Players_regions")
|
||||
static int[] Players_regions;
|
||||
@ObfuscatedName("d")
|
||||
@Export("Players_orientations")
|
||||
static int[] Players_orientations;
|
||||
@ObfuscatedName("k")
|
||||
@Export("Players_targetIndices")
|
||||
static int[] Players_targetIndices;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -22568397
|
||||
)
|
||||
static int field736;
|
||||
@ObfuscatedName("i")
|
||||
static int[] field737;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lgr;"
|
||||
)
|
||||
static Buffer field738;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lgr;"
|
||||
)
|
||||
@Export("NetCache_reference")
|
||||
public static Buffer NetCache_reference;
|
||||
@ObfuscatedName("e")
|
||||
static byte[] field1252;
|
||||
@ObfuscatedName("p")
|
||||
static byte[] field1250;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lkf;"
|
||||
)
|
||||
static Buffer[] field1254;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1230820149
|
||||
)
|
||||
@Export("Players_count")
|
||||
static int Players_count;
|
||||
@ObfuscatedName("b")
|
||||
@Export("Players_indices")
|
||||
static int[] Players_indices;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1347586957
|
||||
)
|
||||
@Export("Players_emptyIdxCount")
|
||||
static int Players_emptyIdxCount;
|
||||
@ObfuscatedName("c")
|
||||
@Export("Players_emptyIndices")
|
||||
static int[] Players_emptyIndices;
|
||||
@ObfuscatedName("f")
|
||||
@Export("Players_regions")
|
||||
static int[] Players_regions;
|
||||
@ObfuscatedName("m")
|
||||
@Export("Players_orientations")
|
||||
static int[] Players_orientations;
|
||||
@ObfuscatedName("u")
|
||||
@Export("Players_targetIndices")
|
||||
static int[] Players_targetIndices;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1998791081
|
||||
)
|
||||
@Export("Players_pendingUpdateCount")
|
||||
static int Players_pendingUpdateCount;
|
||||
@ObfuscatedName("r")
|
||||
@Export("Players_pendingUpdateIndices")
|
||||
static int[] Players_pendingUpdateIndices;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lkf;"
|
||||
)
|
||||
static Buffer field1264;
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/Throwable;Ljava/lang/String;)Lfx;"
|
||||
)
|
||||
public static RunException method2120(Throwable var0, String var1) {
|
||||
RunException var2;
|
||||
if (var0 instanceof RunException) {
|
||||
var2 = (RunException)var0;
|
||||
var2.string = var2.string + ' ' + var1;
|
||||
} else {
|
||||
var2 = new RunException(var0, var1);
|
||||
}
|
||||
static {
|
||||
field1252 = new byte[2048];
|
||||
field1250 = new byte[2048];
|
||||
field1254 = new Buffer[2048];
|
||||
Players_count = 0;
|
||||
Players_indices = new int[2048];
|
||||
Players_emptyIdxCount = 0;
|
||||
Players_emptyIndices = new int[2048];
|
||||
Players_regions = new int[2048];
|
||||
Players_orientations = new int[2048];
|
||||
Players_targetIndices = new int[2048];
|
||||
Players_pendingUpdateCount = 0;
|
||||
Players_pendingUpdateIndices = new int[2048];
|
||||
field1264 = new Buffer(new byte[5000]);
|
||||
}
|
||||
|
||||
return var2;
|
||||
}
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIIB)V",
|
||||
garbageValue = "-86"
|
||||
)
|
||||
static final void method2092(int var0, int var1, int var2, int var3) {
|
||||
for (int var4 = var1; var4 <= var3 + var1; ++var4) {
|
||||
for (int var5 = var0; var5 <= var0 + var2; ++var5) {
|
||||
if (var5 >= 0 && var5 < 104 && var4 >= 0 && var4 < 104) {
|
||||
class32.field282[0][var5][var4] = 127;
|
||||
if (var0 == var5 && var5 > 0) {
|
||||
Tiles.Tiles_heights[0][var5][var4] = Tiles.Tiles_heights[0][var5 - 1][var4];
|
||||
}
|
||||
|
||||
@ObfuscatedName("aj")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lfz;III)Lco;",
|
||||
garbageValue = "-1237576843"
|
||||
)
|
||||
@Export("newPcmPlayer")
|
||||
public static final PcmPlayer newPcmPlayer(TaskHandler var0, int var1, int var2) {
|
||||
if (var1 >= 0 && var1 < 2) {
|
||||
if (var2 < 256) {
|
||||
var2 = 256;
|
||||
}
|
||||
if (var5 == var0 + var2 && var5 < 103) {
|
||||
Tiles.Tiles_heights[0][var5][var4] = Tiles.Tiles_heights[0][var5 + 1][var4];
|
||||
}
|
||||
|
||||
try {
|
||||
PcmPlayer var3 = class65.pcmPlayerProvider.player();
|
||||
var3.samples = new int[(PcmPlayer.isStereo ? 2 : 1) * 256];
|
||||
var3.frequency = var2;
|
||||
var3.init();
|
||||
var3.capacity = (var2 & -1024) + 1024;
|
||||
if (var3.capacity > 16384) {
|
||||
var3.capacity = 16384;
|
||||
}
|
||||
if (var4 == var1 && var4 > 0) {
|
||||
Tiles.Tiles_heights[0][var5][var4] = Tiles.Tiles_heights[0][var5][var4 - 1];
|
||||
}
|
||||
|
||||
var3.open(var3.capacity);
|
||||
if (Login.pcmPlayerCount > 0 && Messages.soundSystem == null) {
|
||||
Messages.soundSystem = new SoundSystem();
|
||||
Friend.soundSystemExecutor = Executors.newScheduledThreadPool(1);
|
||||
Friend.soundSystemExecutor.scheduleAtFixedRate(Messages.soundSystem, 0L, 10L, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
if (var4 == var3 + var1 && var4 < 103) {
|
||||
Tiles.Tiles_heights[0][var5][var4] = Tiles.Tiles_heights[0][var5][var4 + 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Messages.soundSystem != null) {
|
||||
if (Messages.soundSystem.players[var1] != null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
Messages.soundSystem.players[var1] = var3;
|
||||
}
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public static void method2093() {
|
||||
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock) {
|
||||
if (ArchiveDiskActionHandler.field3144 != 0) {
|
||||
ArchiveDiskActionHandler.field3144 = 1;
|
||||
|
||||
return var3;
|
||||
} catch (Throwable var4) {
|
||||
return new PcmPlayer();
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
try {
|
||||
ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock.wait();
|
||||
} catch (InterruptedException var3) {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hu")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIII)V",
|
||||
garbageValue = "46802049"
|
||||
)
|
||||
static final void method2112(int var0, int var1, int var2, int var3) {
|
||||
for (int var4 = 0; var4 < Client.rootWidgetCount; ++var4) {
|
||||
if (Client.rootWidgetWidths[var4] + Client.rootWidgetXs[var4] > var0 && Client.rootWidgetXs[var4] < var0 + var2 && Client.rootWidgetHeights[var4] + Client.rootWidgetYs[var4] > var1 && Client.rootWidgetYs[var4] < var3 + var1) {
|
||||
Client.field100[var4] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)Z",
|
||||
garbageValue = "2142202681"
|
||||
)
|
||||
static final boolean method2091(int var0, int var1) {
|
||||
ObjectDefinition var2 = ViewportMouse.getObjectDefinition(var0);
|
||||
if (var1 == 11) {
|
||||
var1 = 10;
|
||||
}
|
||||
|
||||
@ObfuscatedName("jf")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lho;III)V",
|
||||
garbageValue = "-1991202495"
|
||||
)
|
||||
@Export("clickWidget")
|
||||
static final void clickWidget(Widget component, int x, int y) {
|
||||
if (Client.clickedWidget == null && !Client.isMenuOpen && component != null && class48.method869(component) != null) {
|
||||
Client.clickedWidget = component;
|
||||
Client.clickedWidgetParent = class48.method869(component);
|
||||
Client.widgetClickX = x;
|
||||
Client.widgetClickY = y;
|
||||
MouseRecorder.widgetDragDuration = 0;
|
||||
Client.isDraggingWidget = false;
|
||||
int var3 = Client.menuOptionsCount - 1;
|
||||
if (var3 != -1) {
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction = new MenuAction();
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction.argument1 = Client.menuArguments1[var3];
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction.argument2 = Client.menuArguments2[var3];
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction.opcode = Client.menuOpcodes[var3];
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction.argument0 = Client.menuArguments0[var3];
|
||||
GrandExchangeOfferUnitPriceComparator.tempMenuAction.action = Client.menuActions[var3];
|
||||
}
|
||||
}
|
||||
if (var1 >= 5 && var1 <= 8) {
|
||||
var1 = 4;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static {
|
||||
field731 = new byte[2048];
|
||||
field732 = new byte[2048];
|
||||
field733 = new Buffer[2048];
|
||||
Players_count = 0;
|
||||
Players_indices = new int[2048];
|
||||
field734 = 0;
|
||||
field735 = new int[2048];
|
||||
Players_regions = new int[2048];
|
||||
Players_orientations = new int[2048];
|
||||
Players_targetIndices = new int[2048];
|
||||
field736 = 0;
|
||||
field737 = new int[2048];
|
||||
field738 = new Buffer(new byte[5000]);
|
||||
}
|
||||
return var2.method4589(var1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user