chore: rev 188
This commit is contained in:
@@ -4,66 +4,72 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("cg")
|
||||
@ObfuscatedName("cw")
|
||||
@Implements("DynamicObject")
|
||||
public class DynamicObject extends Entity {
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("bw")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lli;"
|
||||
)
|
||||
@Export("worldSelectStars")
|
||||
static IndexedSprite[] worldSelectStars;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -95317183
|
||||
intValue = 1669181917
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1520992013
|
||||
intValue = -433017079
|
||||
)
|
||||
@Export("type")
|
||||
int type;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1128540715
|
||||
intValue = -857154587
|
||||
)
|
||||
@Export("orientation")
|
||||
int orientation;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1824445575
|
||||
intValue = 1092550967
|
||||
)
|
||||
@Export("plane")
|
||||
int plane;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1187953645
|
||||
intValue = -660680399
|
||||
)
|
||||
@Export("x")
|
||||
int x;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -589129473
|
||||
intValue = 74739559
|
||||
)
|
||||
@Export("y")
|
||||
int y;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Liv;"
|
||||
signature = "Lip;"
|
||||
)
|
||||
@Export("sequenceDefinition")
|
||||
SequenceDefinition sequenceDefinition;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1848001731
|
||||
intValue = -1110728841
|
||||
)
|
||||
@Export("frame")
|
||||
int frame;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 22641631
|
||||
intValue = -1571006873
|
||||
)
|
||||
@Export("cycleStart")
|
||||
int cycleStart;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIIIIIZLep;)V"
|
||||
signature = "(IIIIIIIZLeq;)V"
|
||||
)
|
||||
DynamicObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8, Entity var9) {
|
||||
this.id = var1;
|
||||
@@ -73,10 +79,10 @@ public class DynamicObject extends Entity {
|
||||
this.x = var5;
|
||||
this.y = var6;
|
||||
if (var7 != -1) {
|
||||
this.sequenceDefinition = WorldMapSection0.SequenceDefinition_get(var7);
|
||||
this.sequenceDefinition = GraphicsDefaults.SequenceDefinition_get(var7);
|
||||
this.frame = 0;
|
||||
this.cycleStart = Client.cycle - 1;
|
||||
if (this.sequenceDefinition.field3495 == 0 && var9 != null && var9 instanceof DynamicObject) {
|
||||
if (this.sequenceDefinition.field3516 == 0 && var9 != null && var9 instanceof DynamicObject) {
|
||||
DynamicObject var10 = (DynamicObject)var9;
|
||||
if (this.sequenceDefinition == var10.sequenceDefinition) {
|
||||
this.frame = var10.frame;
|
||||
@@ -93,10 +99,10 @@ public class DynamicObject extends Entity {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Ldw;",
|
||||
garbageValue = "822221372"
|
||||
signature = "(I)Ldx;",
|
||||
garbageValue = "-2133076860"
|
||||
)
|
||||
@Export("getModel")
|
||||
protected final Model getModel() {
|
||||
@@ -106,11 +112,11 @@ public class DynamicObject extends Entity {
|
||||
var1 = 100;
|
||||
}
|
||||
|
||||
label56: {
|
||||
label57: {
|
||||
do {
|
||||
do {
|
||||
if (var1 <= this.sequenceDefinition.frameLengths[this.frame]) {
|
||||
break label56;
|
||||
break label57;
|
||||
}
|
||||
|
||||
var1 -= this.sequenceDefinition.frameLengths[this.frame];
|
||||
@@ -126,7 +132,7 @@ public class DynamicObject extends Entity {
|
||||
this.cycleStart = Client.cycle - var1;
|
||||
}
|
||||
|
||||
ObjectDefinition var12 = Coord.getObjectDefinition(this.id);
|
||||
ObjectDefinition var12 = Occluder.getObjectDefinition(this.id);
|
||||
if (var12.transforms != null) {
|
||||
var12 = var12.transform();
|
||||
}
|
||||
@@ -149,76 +155,74 @@ 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[var4][var7] + var8[var4][var6] + var8[var5][var6] + var8[var5][var7] >> 2;
|
||||
int var9 = var8[var4][var6] + var8[var5][var6] + var8[var4][var7] + 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("f")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Lgz;II)Lgz;",
|
||||
garbageValue = "2071189465"
|
||||
signature = "(IB)I",
|
||||
garbageValue = "2"
|
||||
)
|
||||
@Export("findEnumerated")
|
||||
public static Enumerated findEnumerated(Enumerated[] var0, int var1) {
|
||||
Enumerated[] var2 = var0;
|
||||
|
||||
for (int var3 = 0; var3 < var2.length; ++var3) {
|
||||
Enumerated var4 = var2[var3];
|
||||
if (var1 == var4.rsOrdinal()) {
|
||||
return var4;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
public static int method2293(int var0) {
|
||||
--var0;
|
||||
var0 |= var0 >>> 1;
|
||||
var0 |= var0 >>> 2;
|
||||
var0 |= var0 >>> 4;
|
||||
var0 |= var0 >>> 8;
|
||||
var0 |= var0 >>> 16;
|
||||
return var0 + 1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("jr")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Lha;II)V",
|
||||
garbageValue = "-794395559"
|
||||
signature = "(Lkp;J)V"
|
||||
)
|
||||
@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;
|
||||
}
|
||||
}
|
||||
|
||||
var5 = new ScriptEvent();
|
||||
var5.widget = var3;
|
||||
var5.args = var3.onSubChange;
|
||||
Client.runScriptEvent(var5);
|
||||
}
|
||||
}
|
||||
static void method2291(Buffer var0, long var1) {
|
||||
var1 /= 10L;
|
||||
if (var1 < 0L) {
|
||||
var1 = 0L;
|
||||
} else if (var1 > 65535L) {
|
||||
var1 = 65535L;
|
||||
}
|
||||
|
||||
var0.writeShort((int)var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1735804307"
|
||||
)
|
||||
public static void method2292() {
|
||||
Huffman.SpriteBuffer_xOffsets = null;
|
||||
NPC.SpriteBuffer_yOffsets = null;
|
||||
class326.SpriteBuffer_spriteWidths = null;
|
||||
class326.SpriteBuffer_spriteHeights = null;
|
||||
class326.SpriteBuffer_spritePalette = null;
|
||||
class326.SpriteBuffer_pixels = null;
|
||||
}
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIB)I",
|
||||
garbageValue = "-75"
|
||||
)
|
||||
static final int method2286(int var0, int var1) {
|
||||
if (var0 == -1) {
|
||||
return 12345678;
|
||||
} else {
|
||||
var1 = (var0 & 127) * var1 / 128;
|
||||
if (var1 < 2) {
|
||||
var1 = 2;
|
||||
} else if (var1 > 126) {
|
||||
var1 = 126;
|
||||
}
|
||||
|
||||
return (var0 & 65408) + var1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user