rs-client/apis
This commit is contained in:
@@ -3,85 +3,99 @@ 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("is")
|
||||
@ObfuscatedName("hl")
|
||||
@Implements("StudioGame")
|
||||
public enum StudioGame implements Enumerated {
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field887("runescape", "RuneScape", 0),
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field888("stellardawn", "Stellar Dawn", 1),
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field889("game3", "Game 3", 2),
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field890("game4", "Game 4", 3),
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field891("game5", "Game 5", 4),
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
)
|
||||
field892("oldscape", "RuneScape 2007", 5);
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3107("runescape", "RuneScape", 0),
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3106("stellardawn", "Stellar Dawn", 1),
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3112("game3", "Game 3", 2),
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3108("game4", "Game 4", 3),
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3109("game5", "Game 5", 4),
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhl;"
|
||||
)
|
||||
field3110("oldscape", "RuneScape 2007", 5);
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@Export("name")
|
||||
public final String name;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1688917715
|
||||
)
|
||||
@Export("id")
|
||||
final int id;
|
||||
@ObfuscatedName("b")
|
||||
@Export("name")
|
||||
public final String name;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1180818879
|
||||
)
|
||||
@Export("id")
|
||||
final int id;
|
||||
|
||||
private StudioGame(String var3, String var4, int var5) {
|
||||
this.name = var3;
|
||||
this.id = var5;
|
||||
}
|
||||
StudioGame(String var3, String var4, int var5) {
|
||||
this.name = var3;
|
||||
this.id = var5;
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "83"
|
||||
)
|
||||
@Export("rsOrdinal")
|
||||
public int rsOrdinal() {
|
||||
return this.id;
|
||||
}
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "320353268"
|
||||
)
|
||||
@Export("rsOrdinal")
|
||||
public int rsOrdinal() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Lih;",
|
||||
garbageValue = "-2058685786"
|
||||
)
|
||||
public static FloorUnderlayDefinition method4550(int var0) {
|
||||
FloorUnderlayDefinition var1 = (FloorUnderlayDefinition)FloorUnderlayDefinition.FloorUnderlayDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
byte[] var2 = FloorUnderlayDefinition.FloorUnderlayDefinition_archive.takeFile(1, var0);
|
||||
var1 = new FloorUnderlayDefinition();
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2), var0);
|
||||
}
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcx;ZI)I",
|
||||
garbageValue = "-1636258729"
|
||||
)
|
||||
static int method4137(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? Interpreter.field1111 : Calendar.field2507;
|
||||
if (var0 == ScriptOpcodes.CC_GETTARGETMASK) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = HealthBar.method1957(class268.getWidgetClickMask(var3));
|
||||
return 1;
|
||||
} else if (var0 != ScriptOpcodes.CC_GETOP) {
|
||||
if (var0 == ScriptOpcodes.CC_GETOPBASE) {
|
||||
if (var3.dataText == null) {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var3.dataText;
|
||||
}
|
||||
|
||||
var1.postDecode();
|
||||
FloorUnderlayDefinition.FloorUnderlayDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
int var4 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
--var4;
|
||||
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var3.actions[var4];
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = "";
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user