142 lines
5.2 KiB
Java
142 lines
5.2 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
import net.runelite.rs.ScriptOpcodes;
|
|
|
|
@ObfuscatedName("hz")
|
|
public class class229 {
|
|
@ObfuscatedName("l")
|
|
public static short[][] field1137;
|
|
|
|
@ObfuscatedName("m")
|
|
@ObfuscatedSignature(
|
|
signature = "(IB)Ljb;",
|
|
garbageValue = "-41"
|
|
)
|
|
@Export("getParamDefinition")
|
|
public static ParamDefinition getParamDefinition(int var0) {
|
|
ParamDefinition var1 = (ParamDefinition)ParamDefinition.ParamDefinition_cached.get((long)var0);
|
|
if (var1 != null) {
|
|
return var1;
|
|
} else {
|
|
byte[] var2 = ParamDefinition.ParamDefinition_archive.takeFile(11, var0);
|
|
var1 = new ParamDefinition();
|
|
if (var2 != null) {
|
|
var1.decode(new Buffer(var2));
|
|
}
|
|
|
|
var1.postDecode();
|
|
ParamDefinition.ParamDefinition_cached.put(var1, (long)var0);
|
|
return var1;
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("ad")
|
|
@ObfuscatedSignature(
|
|
signature = "(ILcg;ZI)I",
|
|
garbageValue = "1886084106"
|
|
)
|
|
static int method4513(int var0, Script var1, boolean var2) {
|
|
if (var0 == ScriptOpcodes.VIEWPORT_SETFOV) {
|
|
RouteStrategy.Interpreter_intStackSize -= 2;
|
|
Client.field130 = (short)class161.method3395(Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize]);
|
|
if (Client.field130 <= 0) {
|
|
Client.field130 = 256;
|
|
}
|
|
|
|
Client.field131 = (short)class161.method3395(Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize + 1]);
|
|
if (Client.field131 <= 0) {
|
|
Client.field131 = 256;
|
|
}
|
|
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.VIEWPORT_SETZOOM) {
|
|
RouteStrategy.Interpreter_intStackSize -= 2;
|
|
Client.field150 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize];
|
|
if (Client.field150 <= 0) {
|
|
Client.field150 = 256;
|
|
}
|
|
|
|
Client.field149 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize + 1];
|
|
if (Client.field149 <= 0) {
|
|
Client.field149 = 320;
|
|
}
|
|
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.VIEWPORT_CLAMPFOV) {
|
|
RouteStrategy.Interpreter_intStackSize -= 4;
|
|
Client.field135 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize];
|
|
if (Client.field135 <= 0) {
|
|
Client.field135 = 1;
|
|
}
|
|
|
|
Client.field134 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize + 1];
|
|
if (Client.field134 <= 0) {
|
|
Client.field134 = 32767;
|
|
} else if (Client.field134 < Client.field135) {
|
|
Client.field134 = Client.field135;
|
|
}
|
|
|
|
Client.field132 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize + 2];
|
|
if (Client.field132 <= 0) {
|
|
Client.field132 = 1;
|
|
}
|
|
|
|
Client.field133 = (short)Interpreter.Interpreter_intStack[RouteStrategy.Interpreter_intStackSize + 3];
|
|
if (Client.field133 <= 0) {
|
|
Client.field133 = 32767;
|
|
} else if (Client.field133 < Client.field132) {
|
|
Client.field133 = Client.field132;
|
|
}
|
|
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.VIEWPORT_GETEFFECTIVESIZE) {
|
|
if (Client.viewportWidget != null) {
|
|
FontName.setViewportShape(0, 0, Client.viewportWidget.width, Client.viewportWidget.height, false);
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = Client.viewportWidth;
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = Client.viewportHeight;
|
|
} else {
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = -1;
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = -1;
|
|
}
|
|
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.VIEWPORT_GETZOOM) {
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = Client.field150;
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = Client.field149;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.VIEWPORT_GETFOV) {
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = class30.method571(Client.field130);
|
|
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = class30.method571(Client.field131);
|
|
return 1;
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("gq")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "-21"
|
|
)
|
|
static void method4514() {
|
|
if (Canvas.localPlayer.x >> 7 == Client.destinationX && Canvas.localPlayer.y >> 7 == Client.destinationY) {
|
|
Client.destinationX = 0;
|
|
}
|
|
|
|
}
|
|
|
|
@ObfuscatedName("kj")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "20"
|
|
)
|
|
static final void method4512() {
|
|
SecureRandomFuture.method2104();
|
|
if (PacketWriter.clanChat != null) {
|
|
PacketWriter.clanChat.clearIgnoreds();
|
|
}
|
|
|
|
}
|
|
}
|