rsc: please read the commit message for my neverending descent into madness

how do i stop making castles
every time i go to the beach i make a castle
every time i open blender i model castles
every time i play chess i castle
i just cant stop making castles dude
This commit is contained in:
ThatGamerBlue
2021-02-26 00:33:45 +00:00
parent 62df7e0ff1
commit 563587e6b0
346 changed files with 84175 additions and 82557 deletions

View File

@@ -7,214 +7,228 @@ import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("is")
@Implements("SpotAnimationDefinition")
public class SpotAnimationDefinition extends DualNode {
@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;
@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;
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "Lex;"
)
@Export("SpotAnimationDefinition_cachedModels")
static EvictingDualNodeHashTable SpotAnimationDefinition_cachedModels;
@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;
@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;
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = 159463565
)
@Export("heightScale")
int heightScale;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = 1598330455
)
@Export("orientation")
int orientation;
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = 1067846437
)
@Export("ambient")
int ambient;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 1731372495
)
@Export("contrast")
int contrast;
@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;
}
static {
SpotAnimationDefinition_cached = new EvictingDualNodeHashTable(64); // L: 14
SpotAnimationDefinition_cachedModels = new EvictingDualNodeHashTable(30); // L: 15
}
this.decodeNext(var1, var2);
}
}
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
@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];
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(Lkx;B)V",
garbageValue = "123"
)
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte(); // L: 44
if (var2 == 0) { // L: 45
return; // L: 48
}
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];
this.decodeNext(var1, var2); // L: 46
}
}
for(var4 = 0; var4 < var3; ++var4) {
this.retextureFrom[var4] = (short)var1.readUnsignedShort();
this.retextureTo[var4] = (short)var1.readUnsignedShort();
}
}
}
@ObfuscatedName("d")
@ObfuscatedSignature(
descriptor = "(Lkx;II)V",
garbageValue = "74583909"
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) { // L: 51
this.archive = var1.readUnsignedShort();
} else if (var2 == 2) { // L: 52
this.sequence = var1.readUnsignedShort();
} else if (var2 == 4) { // L: 53
this.widthScale = var1.readUnsignedShort();
} else if (var2 == 5) { // L: 54
this.heightScale = var1.readUnsignedShort();
} else if (var2 == 6) { // L: 55
this.orientation = var1.readUnsignedShort();
} else if (var2 == 7) { // L: 56
this.ambient = var1.readUnsignedByte();
} else if (var2 == 8) { // L: 57
this.contrast = var1.readUnsignedByte();
} else {
int var3;
int var4;
if (var2 == 40) { // L: 58
var3 = var1.readUnsignedByte(); // L: 59
this.recolorFrom = new short[var3]; // L: 60
this.recolorTo = new short[var3]; // L: 61
}
for (var4 = 0; var4 < var3; ++var4) { // L: 62
this.recolorFrom[var4] = (short)var1.readUnsignedShort(); // L: 63
this.recolorTo[var4] = (short)var1.readUnsignedShort(); // L: 64
}
} else if (var2 == 41) { // L: 67
var3 = var1.readUnsignedByte(); // L: 68
this.retextureFrom = new short[var3]; // L: 69
this.retextureTo = new short[var3]; // L: 70
@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;
}
for (var4 = 0; var4 < var3; ++var4) { // L: 71
this.retextureFrom[var4] = (short)var1.readUnsignedShort(); // L: 72
this.retextureTo[var4] = (short)var1.readUnsignedShort(); // L: 73
}
}
}
int var4;
if (this.recolorFrom != null) {
for(var4 = 0; var4 < this.recolorFrom.length; ++var4) {
var3.recolor(this.recolorFrom[var4], this.recolorTo[var4]);
}
}
} // L: 77
if (this.retextureFrom != null) {
for(var4 = 0; var4 < this.retextureFrom.length; ++var4) {
var3.retexture(this.retextureFrom[var4], this.retextureTo[var4]);
}
}
@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); // L: 80
if (var2 == null) { // L: 81
ModelData var3 = ModelData.ModelData_get(SpotAnimationDefinition_modelArchive, this.archive, 0); // L: 82
if (var3 == null) { // L: 83
return null;
}
var2 = var3.toModel(this.ambient + 64, this.contrast + 850, -30, -50, -30);
SpotAnimationDefinition_cachedModels.put(var2, (long)this.id);
}
int var4;
if (this.recolorFrom != null) { // L: 84
for (var4 = 0; var4 < this.recolorFrom.length; ++var4) { // L: 85
var3.recolor(this.recolorFrom[var4], this.recolorTo[var4]); // L: 86
}
}
Model var5;
if (this.sequence != -1 && var1 != -1) {
var5 = InterfaceParent.SequenceDefinition_get(this.sequence).transformSpotAnimationModel(var2, var1);
} else {
var5 = var2.toSharedSpotAnimationModel(true);
}
if (this.retextureFrom != null) { // L: 89
for (var4 = 0; var4 < this.retextureFrom.length; ++var4) { // L: 90
var3.retexture(this.retextureFrom[var4], this.retextureTo[var4]); // L: 91
}
}
if (this.widthScale != 128 || this.heightScale != 128) {
var5.scale(this.widthScale, this.heightScale, this.widthScale);
}
var2 = var3.toModel(this.ambient + 64, this.contrast + 850, -30, -50, -30); // L: 94
SpotAnimationDefinition_cachedModels.put(var2, (long)this.id); // L: 95
}
if (this.orientation != 0) {
if (this.orientation == 90) {
var5.rotateY90Ccw();
}
Model var5;
if (this.sequence != -1 && var1 != -1) { // L: 98
var5 = InterfaceParent.SequenceDefinition_get(this.sequence).transformSpotAnimationModel(var2, var1);
} else {
var5 = var2.toSharedSpotAnimationModel(true); // L: 99
}
if (this.orientation == 180) {
var5.rotateY90Ccw();
var5.rotateY90Ccw();
}
if (this.widthScale != 128 || this.heightScale != 128) { // L: 100
var5.scale(this.widthScale, this.heightScale, this.widthScale);
}
if (this.orientation == 270) {
var5.rotateY90Ccw();
var5.rotateY90Ccw();
var5.rotateY90Ccw();
}
}
if (this.orientation != 0) { // L: 101
if (this.orientation == 90) { // L: 102
var5.rotateY90Ccw();
}
return var5;
}
if (this.orientation == 180) { // L: 103
var5.rotateY90Ccw(); // L: 104
var5.rotateY90Ccw(); // L: 105
}
if (this.orientation == 270) { // L: 107
var5.rotateY90Ccw(); // L: 108
var5.rotateY90Ccw(); // L: 109
var5.rotateY90Ccw(); // L: 110
}
}
return var5; // L: 113
}
}