rev187
This commit is contained in:
@@ -4,72 +4,66 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("cu")
|
||||
@ObfuscatedName("cg")
|
||||
@Implements("DynamicObject")
|
||||
public class DynamicObject extends Entity {
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lbv;"
|
||||
)
|
||||
@Export("loginScreenRunesAnimation")
|
||||
static LoginScreenAnimation loginScreenRunesAnimation;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -679887147
|
||||
intValue = -95317183
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 431933847
|
||||
intValue = 1520992013
|
||||
)
|
||||
@Export("type")
|
||||
int type;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -68495843
|
||||
intValue = 1128540715
|
||||
)
|
||||
@Export("orientation")
|
||||
int orientation;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1644974197
|
||||
intValue = 1824445575
|
||||
)
|
||||
@Export("plane")
|
||||
int plane;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 707207003
|
||||
intValue = -1187953645
|
||||
)
|
||||
@Export("x")
|
||||
int x;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1196896887
|
||||
intValue = -589129473
|
||||
)
|
||||
@Export("y")
|
||||
int y;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Liy;"
|
||||
signature = "Liv;"
|
||||
)
|
||||
@Export("sequenceDefinition")
|
||||
SequenceDefinition sequenceDefinition;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 672363513
|
||||
intValue = 1848001731
|
||||
)
|
||||
@Export("frame")
|
||||
int frame;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1683729561
|
||||
intValue = 22641631
|
||||
)
|
||||
@Export("cycleStart")
|
||||
int cycleStart;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIIIIIZLee;)V"
|
||||
signature = "(IIIIIIIZLep;)V"
|
||||
)
|
||||
DynamicObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8, Entity var9) {
|
||||
this.id = var1;
|
||||
@@ -79,12 +73,12 @@ public class DynamicObject extends Entity {
|
||||
this.x = var5;
|
||||
this.y = var6;
|
||||
if (var7 != -1) {
|
||||
this.sequenceDefinition = GrandExchangeOfferAgeComparator.SequenceDefinition_get(var7);
|
||||
this.sequenceDefinition = WorldMapSection0.SequenceDefinition_get(var7);
|
||||
this.frame = 0;
|
||||
this.cycleStart = Client.cycle - 1;
|
||||
if (this.sequenceDefinition.field3533 == 0 && var9 != null && var9 instanceof DynamicObject) {
|
||||
if (this.sequenceDefinition.field3495 == 0 && var9 != null && var9 instanceof DynamicObject) {
|
||||
DynamicObject var10 = (DynamicObject)var9;
|
||||
if (var10.sequenceDefinition == this.sequenceDefinition) {
|
||||
if (this.sequenceDefinition == var10.sequenceDefinition) {
|
||||
this.frame = var10.frame;
|
||||
this.cycleStart = var10.cycleStart;
|
||||
return;
|
||||
@@ -99,10 +93,10 @@ public class DynamicObject extends Entity {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Ldf;",
|
||||
garbageValue = "-174129419"
|
||||
signature = "(I)Ldw;",
|
||||
garbageValue = "822221372"
|
||||
)
|
||||
@Export("getModel")
|
||||
protected final Model getModel() {
|
||||
@@ -132,7 +126,7 @@ public class DynamicObject extends Entity {
|
||||
this.cycleStart = Client.cycle - var1;
|
||||
}
|
||||
|
||||
ObjectDefinition var12 = Occluder.getObjectDefinition(this.id);
|
||||
ObjectDefinition var12 = Coord.getObjectDefinition(this.id);
|
||||
if (var12.transforms != null) {
|
||||
var12 = var12.transform();
|
||||
}
|
||||
@@ -155,131 +149,76 @@ public class DynamicObject extends Entity {
|
||||
int var6 = (var3 >> 1) + this.y;
|
||||
int var7 = (var3 + 1 >> 1) + this.y;
|
||||
int[][] var8 = Tiles.Tiles_heights[this.plane];
|
||||
int var9 = var8[var5][var7] + var8[var5][var6] + var8[var4][var6] + var8[var4][var7] >> 2;
|
||||
int var9 = var8[var4][var7] + var8[var4][var6] + var8[var5][var6] + var8[var5][var7] >> 2;
|
||||
int var10 = (this.x << 7) + (var2 << 6);
|
||||
int var11 = (this.y << 7) + (var3 << 6);
|
||||
return var12.getModelDynamic(this.type, this.orientation, var8, var10, var9, var11, this.sequenceDefinition, this.frame);
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "1357680514"
|
||||
signature = "([Lgz;II)Lgz;",
|
||||
garbageValue = "2071189465"
|
||||
)
|
||||
public static void method2263(int var0) {
|
||||
if (var0 != -1) {
|
||||
if (Widget.Widget_loadedInterfaces[var0]) {
|
||||
InvDefinition.Widget_archive.clearFilesGroup(var0);
|
||||
if (FloorDecoration.Widget_interfaceComponents[var0] != null) {
|
||||
boolean var1 = true;
|
||||
@Export("findEnumerated")
|
||||
public static Enumerated findEnumerated(Enumerated[] var0, int var1) {
|
||||
Enumerated[] var2 = var0;
|
||||
|
||||
for (int var2 = 0; var2 < FloorDecoration.Widget_interfaceComponents[var0].length; ++var2) {
|
||||
if (FloorDecoration.Widget_interfaceComponents[var0][var2] != null) {
|
||||
if (FloorDecoration.Widget_interfaceComponents[var0][var2].type != 2) {
|
||||
FloorDecoration.Widget_interfaceComponents[var0][var2] = null;
|
||||
} else {
|
||||
var1 = false;
|
||||
}
|
||||
for (int var3 = 0; var3 < var2.length; ++var3) {
|
||||
Enumerated var4 = var2[var3];
|
||||
if (var1 == var4.rsOrdinal()) {
|
||||
return var4;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ObfuscatedName("jr")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Lha;II)V",
|
||||
garbageValue = "-794395559"
|
||||
)
|
||||
@Export("runComponentCloseListeners")
|
||||
static final void runComponentCloseListeners(Widget[] var0, int var1) {
|
||||
for (int var2 = 0; var2 < var0.length; ++var2) {
|
||||
Widget var3 = var0[var2];
|
||||
if (var3 != null) {
|
||||
if (var3.type == 0) {
|
||||
if (var3.children != null) {
|
||||
runComponentCloseListeners(var3.children, var1);
|
||||
}
|
||||
|
||||
InterfaceParent var4 = (InterfaceParent)Client.interfaceParents.get((long)var3.id);
|
||||
if (var4 != null) {
|
||||
ItemContainer.runIntfCloseListeners(var4.group, var1);
|
||||
}
|
||||
}
|
||||
|
||||
ScriptEvent var5;
|
||||
if (var1 == 0 && var3.onDialogAbort != null) {
|
||||
var5 = new ScriptEvent();
|
||||
var5.widget = var3;
|
||||
var5.args = var3.onDialogAbort;
|
||||
Client.runScriptEvent(var5);
|
||||
}
|
||||
|
||||
if (var1 == 1 && var3.onSubChange != null) {
|
||||
if (var3.childIndex >= 0) {
|
||||
Widget var6 = Tile.getWidget(var3.id);
|
||||
if (var6 == null || var6.children == null || var3.childIndex >= var6.children.length || var3 != var6.children[var3.childIndex]) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1) {
|
||||
FloorDecoration.Widget_interfaceComponents[var0] = null;
|
||||
}
|
||||
|
||||
Widget.Widget_loadedInterfaces[var0] = false;
|
||||
var5 = new ScriptEvent();
|
||||
var5.widget = var3;
|
||||
var5.args = var3.onSubChange;
|
||||
Client.runScriptEvent(var5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "514266465"
|
||||
)
|
||||
public static void method2259() {
|
||||
KitDefinition.KitDefinition_cached.clear();
|
||||
}
|
||||
|
||||
@ObfuscatedName("hw")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZLkj;B)V",
|
||||
garbageValue = "4"
|
||||
)
|
||||
static final void method2262(boolean var0, PacketBuffer var1) {
|
||||
while (true) {
|
||||
if (var1.bitsRemaining(Client.packetWriter.serverPacketLength) >= 27) {
|
||||
int var2 = var1.readBits(15);
|
||||
if (var2 != 32767) {
|
||||
boolean var3 = false;
|
||||
if (Client.npcs[var2] == null) {
|
||||
Client.npcs[var2] = new NPC();
|
||||
var3 = true;
|
||||
}
|
||||
|
||||
NPC var4 = Client.npcs[var2];
|
||||
Client.npcIndices[++Client.npcCount - 1] = var2;
|
||||
var4.npcCycle = Client.cycle;
|
||||
int var5 = Client.defaultRotations[var1.readBits(3)];
|
||||
if (var3) {
|
||||
var4.orientation = var4.rotation = var5;
|
||||
}
|
||||
|
||||
int var6 = var1.readBits(1);
|
||||
var4.definition = VarcInt.getNpcDefinition(var1.readBits(14));
|
||||
int var7;
|
||||
if (var0) {
|
||||
var7 = var1.readBits(8);
|
||||
if (var7 > 127) {
|
||||
var7 -= 256;
|
||||
}
|
||||
} else {
|
||||
var7 = var1.readBits(5);
|
||||
if (var7 > 15) {
|
||||
var7 -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
int var8;
|
||||
if (var0) {
|
||||
var8 = var1.readBits(8);
|
||||
if (var8 > 127) {
|
||||
var8 -= 256;
|
||||
}
|
||||
} else {
|
||||
var8 = var1.readBits(5);
|
||||
if (var8 > 15) {
|
||||
var8 -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
int var9 = var1.readBits(1);
|
||||
if (var9 == 1) {
|
||||
Client.field688[++Client.field687 - 1] = var2;
|
||||
}
|
||||
|
||||
var4.field938 = var4.definition.size;
|
||||
var4.field988 = var4.definition.rotation;
|
||||
if (var4.field988 == 0) {
|
||||
var4.rotation = 0;
|
||||
}
|
||||
|
||||
var4.walkSequence = var4.definition.walkSequence;
|
||||
var4.walkBackSequence = var4.definition.walkBackSequence;
|
||||
var4.walkLeftSequence = var4.definition.walkLeftSequence;
|
||||
var4.walkRightSequence = var4.definition.walkRightSequence;
|
||||
var4.readySequence = var4.definition.readySequence;
|
||||
var4.turnLeftSequence = var4.definition.turnLeftSequence;
|
||||
var4.turnRightSequence = var4.definition.turnRightSequence;
|
||||
var4.method2059(class215.localPlayer.pathX[0] + var7, class215.localPlayer.pathY[0] + var8, var6 == 1);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var1.exportIndex();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user