mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 21:40:30 -07:00
158 lines
5.3 KiB
Java
158 lines
5.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!dm")
|
|
public final class Class30 {
|
|
|
|
@OriginalMember(owner = "client!dm", name = "b", descriptor = "[S")
|
|
private short[] aShortArray11;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "i", descriptor = "[S")
|
|
private short[] aShortArray12;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "s", descriptor = "[S")
|
|
private short[] aShortArray13;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "t", descriptor = "[S")
|
|
private short[] aShortArray14;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "w", descriptor = "[I")
|
|
private int[] anIntArray112;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "x", descriptor = "[I")
|
|
private final int[] anIntArray113 = new int[] { -1, -1, -1, -1, -1 };
|
|
|
|
@OriginalMember(owner = "client!dm", name = "k", descriptor = "I")
|
|
public int anInt1457 = -1;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "A", descriptor = "Z")
|
|
public boolean aBoolean85 = false;
|
|
|
|
@OriginalMember(owner = "client!dm", name = "a", descriptor = "(Z)Lclient!gb;")
|
|
public final Class8_Sub5 method1198() {
|
|
@Pc(13) int local13 = 0;
|
|
@Pc(16) Class8_Sub5[] local16 = new Class8_Sub5[5];
|
|
for (@Pc(18) int local18 = 0; local18 < 5; local18++) {
|
|
if (this.anIntArray113[local18] != -1) {
|
|
local16[local13++] = Static77.method1686(Static14.aClass153_8, this.anIntArray113[local18]);
|
|
}
|
|
}
|
|
@Pc(52) Class8_Sub5 local52 = new Class8_Sub5(local16, local13);
|
|
@Pc(58) int local58;
|
|
if (this.aShortArray12 != null) {
|
|
for (local58 = 0; local58 < this.aShortArray12.length; local58++) {
|
|
local52.method1687(this.aShortArray12[local58], this.aShortArray11[local58]);
|
|
}
|
|
}
|
|
if (this.aShortArray14 != null) {
|
|
for (local58 = 0; local58 < this.aShortArray14.length; local58++) {
|
|
local52.method1669(this.aShortArray14[local58], this.aShortArray13[local58]);
|
|
}
|
|
}
|
|
return local52;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!dm", name = "a", descriptor = "(I)Z")
|
|
public final boolean method1199() {
|
|
if (this.anIntArray112 == null) {
|
|
return true;
|
|
}
|
|
@Pc(13) boolean local13 = true;
|
|
for (@Pc(22) int local22 = 0; local22 < this.anIntArray112.length; local22++) {
|
|
if (!Static14.aClass153_8.method4491(0, this.anIntArray112[local22])) {
|
|
local13 = false;
|
|
}
|
|
}
|
|
return local13;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!dm", name = "a", descriptor = "(BLclient!wa;I)V")
|
|
private void method1203(@OriginalArg(1) Buffer arg0, @OriginalArg(2) int arg1) {
|
|
if (arg1 == 1) {
|
|
this.anInt1457 = arg0.method2229();
|
|
return;
|
|
}
|
|
@Pc(22) int local22;
|
|
@Pc(28) int local28;
|
|
if (arg1 == 2) {
|
|
local22 = arg0.method2229();
|
|
this.anIntArray112 = new int[local22];
|
|
for (local28 = 0; local28 < local22; local28++) {
|
|
this.anIntArray112[local28] = arg0.method2163();
|
|
}
|
|
} else if (arg1 == 3) {
|
|
this.aBoolean85 = true;
|
|
} else if (arg1 == 40) {
|
|
local22 = arg0.method2229();
|
|
this.aShortArray11 = new short[local22];
|
|
this.aShortArray12 = new short[local22];
|
|
for (local28 = 0; local28 < local22; local28++) {
|
|
this.aShortArray12[local28] = (short) arg0.method2163();
|
|
this.aShortArray11[local28] = (short) arg0.method2163();
|
|
}
|
|
} else if (arg1 == 41) {
|
|
local22 = arg0.method2229();
|
|
this.aShortArray14 = new short[local22];
|
|
this.aShortArray13 = new short[local22];
|
|
for (local28 = 0; local28 < local22; local28++) {
|
|
this.aShortArray14[local28] = (short) arg0.method2163();
|
|
this.aShortArray13[local28] = (short) arg0.method2163();
|
|
}
|
|
} else if (arg1 >= 60 && arg1 < 70) {
|
|
this.anIntArray113[arg1 - 60] = arg0.method2163();
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!dm", name = "b", descriptor = "(B)Lclient!gb;")
|
|
public final Class8_Sub5 method1204() {
|
|
if (this.anIntArray112 == null) {
|
|
return null;
|
|
}
|
|
@Pc(16) Class8_Sub5[] local16 = new Class8_Sub5[this.anIntArray112.length];
|
|
for (@Pc(18) int local18 = 0; local18 < this.anIntArray112.length; local18++) {
|
|
local16[local18] = Static77.method1686(Static14.aClass153_8, this.anIntArray112[local18]);
|
|
}
|
|
@Pc(56) Class8_Sub5 local56;
|
|
if (local16.length == 1) {
|
|
local56 = local16[0];
|
|
} else {
|
|
local56 = new Class8_Sub5(local16, local16.length);
|
|
}
|
|
@Pc(70) int local70;
|
|
if (this.aShortArray12 != null) {
|
|
for (local70 = 0; local70 < this.aShortArray12.length; local70++) {
|
|
local56.method1687(this.aShortArray12[local70], this.aShortArray11[local70]);
|
|
}
|
|
}
|
|
if (this.aShortArray14 != null) {
|
|
for (local70 = 0; local70 < this.aShortArray14.length; local70++) {
|
|
local56.method1669(this.aShortArray14[local70], this.aShortArray13[local70]);
|
|
}
|
|
}
|
|
return local56;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!dm", name = "c", descriptor = "(I)Z")
|
|
public final boolean method1205() {
|
|
@Pc(3) boolean local3 = true;
|
|
for (@Pc(12) int local12 = 0; local12 < 5; local12++) {
|
|
if (this.anIntArray113[local12] != -1 && !Static14.aClass153_8.method4491(0, this.anIntArray113[local12])) {
|
|
local3 = false;
|
|
}
|
|
}
|
|
return local3;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!dm", name = "a", descriptor = "(ILclient!wa;)V")
|
|
public final void method1209(@OriginalArg(1) Buffer arg0) {
|
|
while (true) {
|
|
@Pc(13) int local13 = arg0.method2229();
|
|
if (local13 == 0) {
|
|
return;
|
|
}
|
|
this.method1203(arg0, local13);
|
|
}
|
|
}
|
|
}
|