mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 13:30:30 -07:00
78 lines
2.3 KiB
Java
78 lines
2.3 KiB
Java
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalClass;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
@OriginalClass("client!f")
|
|
public final class TextureOp8 extends TextureOp {
|
|
|
|
@OriginalMember(owner = "client!f", name = "R", descriptor = "I")
|
|
private int anInt1935 = 204;
|
|
|
|
@OriginalMember(owner = "client!f", name = "Y", descriptor = "I")
|
|
private int anInt1940 = 1;
|
|
|
|
@OriginalMember(owner = "client!f", name = "Q", descriptor = "I")
|
|
private int anInt1934 = 1;
|
|
|
|
@OriginalMember(owner = "client!f", name = "<init>", descriptor = "()V")
|
|
public TextureOp8() {
|
|
super(0, true);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!f", name = "a", descriptor = "(ILclient!wa;Z)V")
|
|
@Override
|
|
public final void method4629(@OriginalArg(0) int arg0, @OriginalArg(1) Buffer arg1) {
|
|
if (arg0 == 0) {
|
|
this.anInt1934 = arg1.method2229();
|
|
} else if (arg0 == 1) {
|
|
this.anInt1940 = arg1.method2229();
|
|
} else if (arg0 == 2) {
|
|
this.anInt1935 = arg1.method2163();
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!f", name = "a", descriptor = "(IB)[I")
|
|
@Override
|
|
public final int[] method4626(@OriginalArg(0) int arg0) {
|
|
@Pc(19) int[] local19 = this.aClass121_41.method3445(arg0);
|
|
if (this.aClass121_41.aBoolean221) {
|
|
for (@Pc(25) int local25 = 0; local25 < Static189.anInt4457; local25++) {
|
|
@Pc(32) int local32 = Static173.anIntArray367[local25];
|
|
@Pc(36) int local36 = Static64.anIntArray153[arg0];
|
|
@Pc(43) int local43 = this.anInt1934 * local32 >> 12;
|
|
@Pc(50) int local50 = local36 * this.anInt1940 >> 12;
|
|
@Pc(60) int local60 = this.anInt1934 * (local32 % (4096 / this.anInt1934));
|
|
@Pc(70) int local70 = local36 % (4096 / this.anInt1940) * this.anInt1940;
|
|
if (this.anInt1935 > local70) {
|
|
for (local43 -= local50; local43 < 0; local43 += 4) {
|
|
}
|
|
while (local43 > 3) {
|
|
local43 -= 4;
|
|
}
|
|
if (local43 != 1) {
|
|
local19[local25] = 0;
|
|
continue;
|
|
}
|
|
if (this.anInt1935 > local60) {
|
|
local19[local25] = 0;
|
|
continue;
|
|
}
|
|
}
|
|
if (local60 < this.anInt1935) {
|
|
for (local43 -= local50; local43 < 0; local43 += 4) {
|
|
}
|
|
while (local43 > 3) {
|
|
local43 -= 4;
|
|
}
|
|
if (local43 > 0) {
|
|
local19[local25] = 0;
|
|
continue;
|
|
}
|
|
}
|
|
local19[local25] = 4096;
|
|
}
|
|
}
|
|
return local19;
|
|
}
|
|
}
|