chore: rev 194

This commit is contained in:
zeruth
2021-02-24 08:08:39 -05:00
parent 11dd1cdb41
commit e1df0f6f7c
352 changed files with 83792 additions and 85533 deletions

View File

@@ -4,231 +4,217 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ik")
@ObfuscatedName("is")
@Implements("SpotAnimationDefinition")
public class SpotAnimationDefinition extends DualNode {
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "Lib;"
)
@Export("SpotAnimationDefinition_archive")
static AbstractArchive SpotAnimationDefinition_archive;
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "Lib;"
)
@Export("SpotAnimationDefinition_modelArchive")
static AbstractArchive SpotAnimationDefinition_modelArchive;
@ObfuscatedName("x")
@ObfuscatedSignature(
descriptor = "Lez;"
)
@Export("SpotAnimationDefinition_cached")
static EvictingDualNodeHashTable SpotAnimationDefinition_cached;
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "Lez;"
)
@Export("SpotAnimationDefinition_cachedModels")
static EvictingDualNodeHashTable SpotAnimationDefinition_cachedModels;
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = 116853057
)
@Export("id")
int id;
@ObfuscatedName("j")
@ObfuscatedGetter(
intValue = 1527605981
)
@Export("archive")
int archive;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = 664616399
)
@Export("sequence")
public int sequence;
@ObfuscatedName("p")
@Export("recolorFrom")
short[] recolorFrom;
@ObfuscatedName("l")
@Export("recolorTo")
short[] recolorTo;
@ObfuscatedName("z")
@Export("retextureFrom")
short[] retextureFrom;
@ObfuscatedName("u")
@Export("retextureTo")
short[] retextureTo;
@ObfuscatedName("e")
@ObfuscatedGetter(
intValue = 492539667
)
@Export("widthScale")
int widthScale;
@ObfuscatedName("m")
@ObfuscatedGetter(
intValue = 1988933589
)
@Export("heightScale")
int heightScale;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 130255545
)
@Export("orientation")
int orientation;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 905155291
)
@Export("ambient")
int ambient;
@ObfuscatedName("f")
@ObfuscatedGetter(
intValue = -1227772685
)
@Export("contrast")
int contrast;
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "Lig;"
)
@Export("SpotAnimationDefinition_archive")
public static AbstractArchive SpotAnimationDefinition_archive;
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "Lig;"
)
@Export("SpotAnimationDefinition_modelArchive")
public static AbstractArchive SpotAnimationDefinition_modelArchive;
@ObfuscatedName("d")
@ObfuscatedSignature(
descriptor = "Lex;"
)
@Export("SpotAnimationDefinition_cached")
static EvictingDualNodeHashTable SpotAnimationDefinition_cached = new EvictingDualNodeHashTable(64);
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "Lex;"
)
@Export("SpotAnimationDefinition_cachedModels")
static EvictingDualNodeHashTable SpotAnimationDefinition_cachedModels = new EvictingDualNodeHashTable(30);
@ObfuscatedName("y")
@ObfuscatedGetter(
intValue = -248085657
)
@Export("id")
int id;
@ObfuscatedName("h")
@ObfuscatedGetter(
intValue = 854487695
)
@Export("archive")
int archive;
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = -1665782571
)
@Export("sequence")
public int sequence = -1;
@ObfuscatedName("e")
@Export("recolorFrom")
short[] recolorFrom;
@ObfuscatedName("q")
@Export("recolorTo")
short[] recolorTo;
@ObfuscatedName("l")
@Export("retextureFrom")
short[] retextureFrom;
@ObfuscatedName("s")
@Export("retextureTo")
short[] retextureTo;
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = 1815263859
)
@Export("widthScale")
int widthScale = 128;
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = 159463565
)
@Export("heightScale")
int heightScale = 128;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = 1598330455
)
@Export("orientation")
int orientation = 0;
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = 1067846437
)
@Export("ambient")
int ambient = 0;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 1731372495
)
@Export("contrast")
int contrast = 0;
static {
SpotAnimationDefinition_cached = new EvictingDualNodeHashTable(64); // L: 14
SpotAnimationDefinition_cachedModels = new EvictingDualNodeHashTable(30); // L: 15
}
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(Lkx;B)V",
garbageValue = "123"
)
@Export("decode")
void decode(Buffer var1) {
while(true) {
int var2 = var1.readUnsignedByte();
if (var2 == 0) {
return;
}
SpotAnimationDefinition() {
this.sequence = -1; // L: 18
this.widthScale = 128; // L: 23
this.heightScale = 128; // L: 24
this.orientation = 0; // L: 25
this.ambient = 0; // L: 26
this.contrast = 0; // L: 27
} // L: 29
this.decodeNext(var1, var2);
}
}
@ObfuscatedName("x")
@ObfuscatedSignature(
descriptor = "(Lkj;I)V",
garbageValue = "-1477796181"
)
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte(); // L: 49
if (var2 == 0) { // L: 50
return; // L: 53
}
@ObfuscatedName("d")
@ObfuscatedSignature(
descriptor = "(Lkx;II)V",
garbageValue = "74583909"
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) {
this.archive = var1.readUnsignedShort();
} else if (var2 == 2) {
this.sequence = var1.readUnsignedShort();
} else if (var2 == 4) {
this.widthScale = var1.readUnsignedShort();
} else if (var2 == 5) {
this.heightScale = var1.readUnsignedShort();
} else if (var2 == 6) {
this.orientation = var1.readUnsignedShort();
} else if (var2 == 7) {
this.ambient = var1.readUnsignedByte();
} else if (var2 == 8) {
this.contrast = var1.readUnsignedByte();
} else {
int var3;
int var4;
if (var2 == 40) {
var3 = var1.readUnsignedByte();
this.recolorFrom = new short[var3];
this.recolorTo = new short[var3];
this.decodeNext(var1, var2); // L: 51
}
}
for(var4 = 0; var4 < var3; ++var4) {
this.recolorFrom[var4] = (short)var1.readUnsignedShort();
this.recolorTo[var4] = (short)var1.readUnsignedShort();
}
} else if (var2 == 41) {
var3 = var1.readUnsignedByte();
this.retextureFrom = new short[var3];
this.retextureTo = new short[var3];
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(Lkj;IB)V",
garbageValue = "7"
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) { // L: 56
this.archive = var1.readUnsignedShort();
} else if (var2 == 2) { // L: 57
this.sequence = var1.readUnsignedShort();
} else if (var2 == 4) { // L: 58
this.widthScale = var1.readUnsignedShort();
} else if (var2 == 5) { // L: 59
this.heightScale = var1.readUnsignedShort();
} else if (var2 == 6) { // L: 60
this.orientation = var1.readUnsignedShort();
} else if (var2 == 7) { // L: 61
this.ambient = var1.readUnsignedByte();
} else if (var2 == 8) {
this.contrast = var1.readUnsignedByte(); // L: 62
} else {
int var3;
int var4;
if (var2 == 40) { // L: 63
var3 = var1.readUnsignedByte(); // L: 64
this.recolorFrom = new short[var3]; // L: 65
this.recolorTo = new short[var3]; // L: 66
for(var4 = 0; var4 < var3; ++var4) {
this.retextureFrom[var4] = (short)var1.readUnsignedShort();
this.retextureTo[var4] = (short)var1.readUnsignedShort();
}
}
}
for (var4 = 0; var4 < var3; ++var4) { // L: 67
this.recolorFrom[var4] = (short)var1.readUnsignedShort(); // L: 68
this.recolorTo[var4] = (short)var1.readUnsignedShort(); // L: 69
}
} else if (var2 == 41) { // L: 72
var3 = var1.readUnsignedByte(); // L: 73
this.retextureFrom = new short[var3]; // L: 74
this.retextureTo = new short[var3]; // L: 75
}
for (var4 = 0; var4 < var3; ++var4) { // L: 76
this.retextureFrom[var4] = (short)var1.readUnsignedShort(); // L: 77
this.retextureTo[var4] = (short)var1.readUnsignedShort(); // L: 78
}
}
}
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(IB)Lef;",
garbageValue = "1"
)
@Export("getModel")
public final Model getModel(int var1) {
Model var2 = (Model)SpotAnimationDefinition_cachedModels.get((long)this.id);
if (var2 == null) {
ModelData var3 = ModelData.ModelData_get(SpotAnimationDefinition_modelArchive, this.archive, 0);
if (var3 == null) {
return null;
}
} // L: 82
int var4;
if (this.recolorFrom != null) {
for(var4 = 0; var4 < this.recolorFrom.length; ++var4) {
var3.recolor(this.recolorFrom[var4], this.recolorTo[var4]);
}
}
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "(II)Leh;",
garbageValue = "-888239890"
)
@Export("getModel")
public final Model getModel(int var1) {
Model var2 = (Model)SpotAnimationDefinition_cachedModels.get((long)this.id); // L: 85
if (var2 == null) { // L: 86
ModelData var3 = ModelData.ModelData_get(SpotAnimationDefinition_modelArchive, this.archive, 0); // L: 87
if (var3 == null) { // L: 88
return null;
}
if (this.retextureFrom != null) {
for(var4 = 0; var4 < this.retextureFrom.length; ++var4) {
var3.retexture(this.retextureFrom[var4], this.retextureTo[var4]);
}
}
int var4;
if (this.recolorFrom != null) { // L: 89
for (var4 = 0; var4 < this.recolorFrom.length; ++var4) { // L: 90
var3.recolor(this.recolorFrom[var4], this.recolorTo[var4]); // L: 91
}
}
var2 = var3.toModel(this.ambient + 64, this.contrast + 850, -30, -50, -30);
SpotAnimationDefinition_cachedModels.put(var2, (long)this.id);
}
if (this.retextureFrom != null) { // L: 94
for (var4 = 0; var4 < this.retextureFrom.length; ++var4) { // L: 95
var3.retexture(this.retextureFrom[var4], this.retextureTo[var4]); // L: 96
}
}
Model var5;
if (this.sequence != -1 && var1 != -1) {
var5 = InterfaceParent.SequenceDefinition_get(this.sequence).transformSpotAnimationModel(var2, var1);
} else {
var5 = var2.toSharedSpotAnimationModel(true);
}
var2 = var3.toModel(this.ambient + 64, this.contrast + 850, -30, -50, -30); // L: 99
SpotAnimationDefinition_cachedModels.put(var2, (long)this.id); // L: 100
}
if (this.widthScale != 128 || this.heightScale != 128) {
var5.scale(this.widthScale, this.heightScale, this.widthScale);
}
Model var5;
if (this.sequence != -1 && var1 != -1) { // L: 103
var5 = ParamComposition.SequenceDefinition_get(this.sequence).transformSpotAnimationModel(var2, var1);
} else {
var5 = var2.toSharedSpotAnimationModel(true); // L: 104
}
if (this.orientation != 0) {
if (this.orientation == 90) {
var5.rotateY90Ccw();
}
if (this.widthScale != 128 || this.heightScale != 128) { // L: 105
var5.scale(this.widthScale, this.heightScale, this.widthScale);
}
if (this.orientation == 180) {
var5.rotateY90Ccw();
var5.rotateY90Ccw();
}
if (this.orientation != 0) { // L: 106
if (this.orientation == 90) { // L: 107
var5.rotateY90Ccw();
}
if (this.orientation == 270) {
var5.rotateY90Ccw();
var5.rotateY90Ccw();
var5.rotateY90Ccw();
}
}
if (this.orientation == 180) { // L: 108
var5.rotateY90Ccw(); // L: 109
var5.rotateY90Ccw(); // L: 110
}
if (this.orientation == 270) { // L: 112
var5.rotateY90Ccw(); // L: 113
var5.rotateY90Ccw(); // L: 114
var5.rotateY90Ccw(); // L: 115
}
}
return var5; // L: 118
}
return var5;
}
}