rev 196
This commit is contained in:
@@ -1,146 +1,132 @@
|
||||
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;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("fx")
|
||||
@ObfuscatedName("gg")
|
||||
@Implements("Tile")
|
||||
public final class Tile extends Node {
|
||||
@ObfuscatedName("ba")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Loh;"
|
||||
)
|
||||
@Export("worldSelectBackSprites")
|
||||
static SpritePixels[] worldSelectBackSprites;
|
||||
@ObfuscatedName("gj")
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 290208105
|
||||
)
|
||||
@Export("baseY")
|
||||
static int baseY;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1592009021
|
||||
intValue = 807593723
|
||||
)
|
||||
@Export("plane")
|
||||
int plane;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1758245997
|
||||
intValue = 2036199513
|
||||
)
|
||||
@Export("x")
|
||||
int x;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 528170581
|
||||
intValue = -822005461
|
||||
)
|
||||
@Export("y")
|
||||
int y;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1400903317
|
||||
intValue = 485184207
|
||||
)
|
||||
@Export("originalPlane")
|
||||
int originalPlane;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lgr;"
|
||||
)
|
||||
@Export("paint")
|
||||
SceneTilePaint paint;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfj;"
|
||||
)
|
||||
@Export("model")
|
||||
SceneTileModel model;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lgs;"
|
||||
)
|
||||
@Export("boundaryObject")
|
||||
BoundaryObject boundaryObject;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lgh;"
|
||||
)
|
||||
@Export("paint")
|
||||
SceneTilePaint paint;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lgy;"
|
||||
)
|
||||
@Export("model")
|
||||
SceneTileModel model;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lhf;"
|
||||
)
|
||||
@Export("boundaryObject")
|
||||
BoundaryObject boundaryObject;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lhw;"
|
||||
)
|
||||
@Export("wallDecoration")
|
||||
WallDecoration wallDecoration;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfz;"
|
||||
descriptor = "Lgd;"
|
||||
)
|
||||
@Export("floorDecoration")
|
||||
FloorDecoration floorDecoration;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfk;"
|
||||
descriptor = "Lgf;"
|
||||
)
|
||||
@Export("itemLayer")
|
||||
ItemLayer itemLayer;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1333584157
|
||||
intValue = -992962401
|
||||
)
|
||||
@Export("gameObjectsCount")
|
||||
int gameObjectsCount;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Lgb;"
|
||||
descriptor = "[Lhz;"
|
||||
)
|
||||
@Export("gameObjects")
|
||||
GameObject[] gameObjects;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("k")
|
||||
@Export("gameObjectEdgeMasks")
|
||||
int[] gameObjectEdgeMasks;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 710748349
|
||||
intValue = 1417290969
|
||||
)
|
||||
@Export("gameObjectsEdgeMask")
|
||||
int gameObjectsEdgeMask;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1452251067
|
||||
intValue = 1984915759
|
||||
)
|
||||
@Export("minPlane")
|
||||
int minPlane;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("a")
|
||||
@Export("drawPrimary")
|
||||
boolean drawPrimary;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("e")
|
||||
@Export("drawSecondary")
|
||||
boolean drawSecondary;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("d")
|
||||
@Export("drawGameObjects")
|
||||
boolean drawGameObjects;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 551470887
|
||||
intValue = 567739365
|
||||
)
|
||||
@Export("drawGameObjectEdges")
|
||||
int drawGameObjectEdges;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1164753335
|
||||
intValue = 1688773339
|
||||
)
|
||||
int field1889;
|
||||
@ObfuscatedName("z")
|
||||
int field2246;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 210470001
|
||||
intValue = 1470704437
|
||||
)
|
||||
int field1890;
|
||||
@ObfuscatedName("i")
|
||||
int field2247;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1446822029
|
||||
intValue = -1666464329
|
||||
)
|
||||
int field1882;
|
||||
@ObfuscatedName("a")
|
||||
int field2248;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfx;"
|
||||
descriptor = "Lgg;"
|
||||
)
|
||||
@Export("linkedBelowTile")
|
||||
Tile linkedBelowTile;
|
||||
@@ -154,103 +140,18 @@ public final class Tile extends Node {
|
||||
this.y = var3; // L: 33
|
||||
} // L: 34
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("gq")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)[B",
|
||||
garbageValue = "-20"
|
||||
descriptor = "(III)V",
|
||||
garbageValue = "1743016455"
|
||||
)
|
||||
public static byte[] method3356() {
|
||||
byte[] var0 = new byte[24]; // L: 275
|
||||
|
||||
try {
|
||||
JagexCache.JagexCache_randomDat.seek(0L); // L: 277
|
||||
JagexCache.JagexCache_randomDat.readFully(var0); // L: 278
|
||||
|
||||
int var1;
|
||||
for (var1 = 0; var1 < 24 && var0[var1] == 0; ++var1) { // L: 279 280 281
|
||||
static final void method3813(int var0, int var1) {
|
||||
if (Client.hintArrowType == 2) { // L: 4824
|
||||
PcmPlayer.worldToScreen((Client.hintArrowX - JagexCache.baseX << 7) + Client.hintArrowSubX, (Client.hintArrowY - Messages.baseY << 7) + Client.hintArrowSubY, Client.hintArrowHeight * 2); // L: 4825
|
||||
if (Client.viewportTempX > -1 && Client.cycle % 20 < 10) { // L: 4826
|
||||
class375.headIconHintSprites[0].drawTransBgAt(var0 + Client.viewportTempX - 12, Client.viewportTempY + var1 - 28);
|
||||
}
|
||||
|
||||
if (var1 >= 24) { // L: 283
|
||||
throw new IOException();
|
||||
}
|
||||
} catch (Exception var4) {
|
||||
for (int var2 = 0; var2 < 24; ++var2) { // L: 286
|
||||
var0[var2] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
return var0; // L: 288
|
||||
}
|
||||
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILcc;ZI)I",
|
||||
garbageValue = "-860783313"
|
||||
)
|
||||
static int method3358(int var0, Script var1, boolean var2) {
|
||||
if (var0 == ScriptOpcodes.SOUND_SYNTH) { // L: 1809
|
||||
class16.Interpreter_intStackSize -= 3; // L: 1810
|
||||
ArchiveDiskAction.queueSoundEffect(Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize], Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 1], Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 2]); // L: 1811
|
||||
return 1; // L: 1812
|
||||
} else if (var0 == ScriptOpcodes.SOUND_SONG) { // L: 1814
|
||||
class4.playSong(Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]); // L: 1815
|
||||
return 1; // L: 1816
|
||||
} else if (var0 == ScriptOpcodes.SOUND_JINGLE) { // L: 1818
|
||||
class16.Interpreter_intStackSize -= 2; // L: 1819
|
||||
HealthBarUpdate.method2175(Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize], Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 1]); // L: 1820
|
||||
return 1; // L: 1821
|
||||
} else {
|
||||
int var3;
|
||||
if (var0 == 3203) { // L: 1823
|
||||
var3 = Math.min(Math.max(Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize], 0), 100); // L: 1824
|
||||
Messages.method2367(Math.round(2.55F * (float)var3)); // L: 1825
|
||||
return 1; // L: 1826
|
||||
} else if (var0 == 3204) { // L: 1828
|
||||
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Math.round((float)Login.clientPreferences.musicVolume / 2.55F); // L: 1829
|
||||
return 1; // L: 1830
|
||||
} else if (var0 == 3205) { // L: 1832
|
||||
var3 = Math.min(Math.max(Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize], 0), 100); // L: 1833
|
||||
Canvas.updateSoundEffectVolume(Math.round((float)var3 * 1.27F)); // L: 1834
|
||||
return 1; // L: 1835
|
||||
} else if (var0 == 3206) { // L: 1837
|
||||
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Math.round((float)Login.clientPreferences.soundEffectsVolume / 1.27F); // L: 1838
|
||||
return 1; // L: 1839
|
||||
} else if (var0 == 3207) { // L: 1841
|
||||
var3 = Math.min(Math.max(Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize], 0), 100); // L: 1842
|
||||
MusicPatchPcmStream.method4126(Math.round((float)var3 * 1.27F)); // L: 1843
|
||||
return 1; // L: 1844
|
||||
} else if (var0 == 3208) { // L: 1846
|
||||
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Math.round((float)Login.clientPreferences.areaSoundEffectsVolume / 1.27F); // L: 1847
|
||||
return 1; // L: 1848
|
||||
} else {
|
||||
return 2; // L: 1850
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("fm")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)V",
|
||||
garbageValue = "149089395"
|
||||
)
|
||||
@Export("setWindowedMode")
|
||||
static void setWindowedMode(int var0) {
|
||||
Client.field819 = 0L; // L: 3599
|
||||
if (var0 >= 2) { // L: 3600
|
||||
Client.isResizable = true;
|
||||
} else {
|
||||
Client.isResizable = false; // L: 3601
|
||||
}
|
||||
|
||||
if (WorldMapScaleHandler.getWindowedMode() == 1) { // L: 3602
|
||||
class10.client.setMaxCanvasSize(765, 503); // L: 3603
|
||||
} else {
|
||||
class10.client.setMaxCanvasSize(7680, 2160); // L: 3606
|
||||
}
|
||||
|
||||
if (Client.gameState >= 25) { // L: 3608
|
||||
ItemContainer.method2093();
|
||||
}
|
||||
|
||||
} // L: 3609
|
||||
} // L: 4827
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user