mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
120 lines
4.6 KiB
Java
120 lines
4.6 KiB
Java
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static118 {
|
|
|
|
@OriginalMember(owner = "client!jd", name = "d", descriptor = "[[[B")
|
|
public static byte[][][] aByteArrayArrayArray9;
|
|
|
|
@OriginalMember(owner = "client!jd", name = "i", descriptor = "Lclient!be;")
|
|
public static Component aClass13_15;
|
|
|
|
@OriginalMember(owner = "client!jd", name = "c", descriptor = "Lclient!n;")
|
|
public static final SoftLruHashTable aClass99_16 = new SoftLruHashTable(100);
|
|
|
|
@OriginalMember(owner = "client!jd", name = "a", descriptor = "(B)I")
|
|
public static int method2352() {
|
|
Static232.anInt5212 = 0;
|
|
return Static119.method2385();
|
|
}
|
|
|
|
@OriginalMember(owner = "client!jd", name = "a", descriptor = "(IB)V")
|
|
public static void method2353(@OriginalArg(0) int arg0) {
|
|
@Pc(12) DelayedStateChange local12 = Static238.method4143(12, arg0);
|
|
local12.method1007();
|
|
}
|
|
|
|
@OriginalMember(owner = "client!jd", name = "a", descriptor = "(II[Lclient!be;)V")
|
|
public static void method2354(@OriginalArg(1) int arg0, @OriginalArg(2) Component[] arg1) {
|
|
for (@Pc(7) int local7 = 0; local7 < arg1.length; local7++) {
|
|
@Pc(15) Component local15 = arg1[local7];
|
|
if (local15 != null && local15.layer == arg0 && (!local15.aBoolean32 || !Static36.method947(local15))) {
|
|
if (local15.anInt452 == 0) {
|
|
if (!local15.aBoolean32 && Static36.method947(local15) && local15 != Static180.aClass13_22) {
|
|
continue;
|
|
}
|
|
method2354(local15.anInt507, arg1);
|
|
if (local15.createdComponents != null) {
|
|
method2354(local15.anInt507, local15.createdComponents);
|
|
}
|
|
@Pc(73) Class3_Sub31 local73 = (Class3_Sub31) Static119.aClass133_9.method3863((long) local15.anInt507);
|
|
if (local73 != null) {
|
|
Static96.method1949(local73.anInt5878);
|
|
}
|
|
}
|
|
if (local15.anInt452 == 6) {
|
|
@Pc(105) int local105;
|
|
if (local15.anInt522 != -1 || local15.anInt462 != -1) {
|
|
@Pc(100) boolean local100 = Static154.method2926(local15);
|
|
if (local100) {
|
|
local105 = local15.anInt462;
|
|
} else {
|
|
local105 = local15.anInt522;
|
|
}
|
|
if (local105 != -1) {
|
|
@Pc(118) SeqType local118 = Static36.method941(local105);
|
|
if (local118 != null) {
|
|
local15.anInt500 += Static178.anInt4247;
|
|
while (local15.anInt500 > local118.anIntArray474[local15.anInt510]) {
|
|
local15.anInt500 -= local118.anIntArray474[local15.anInt510];
|
|
local15.anInt510++;
|
|
if (local118.anIntArray473.length <= local15.anInt510) {
|
|
local15.anInt510 -= local118.anInt5362;
|
|
if (local15.anInt510 < 0 || local118.anIntArray473.length <= local15.anInt510) {
|
|
local15.anInt510 = 0;
|
|
}
|
|
}
|
|
local15.anInt496 = local15.anInt510 + 1;
|
|
if (local118.anIntArray473.length <= local15.anInt496) {
|
|
local15.anInt496 -= local118.anInt5362;
|
|
if (local15.anInt496 < 0 || local118.anIntArray473.length <= local15.anInt496) {
|
|
local15.anInt496 = -1;
|
|
}
|
|
}
|
|
Static43.method1143(local15);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (local15.modelRotationSpeed != 0 && !local15.aBoolean32) {
|
|
@Pc(239) int local239 = local15.modelRotationSpeed >> 16;
|
|
@Pc(243) int local243 = local239 * Static178.anInt4247;
|
|
local105 = local15.modelRotationSpeed << 16 >> 16;
|
|
local15.modelXAngle = local243 + local15.modelXAngle & 0x7FF;
|
|
local105 *= Static178.anInt4247;
|
|
local15.modelYAngle = local15.modelYAngle + local105 & 0x7FF;
|
|
Static43.method1143(local15);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!jd", name = "a", descriptor = "(II[Lclient!na;I)Lclient!na;")
|
|
public static JagString method2355(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) JagString[] arg2) {
|
|
@Pc(5) int local5 = 0;
|
|
for (@Pc(7) int local7 = 0; local7 < arg1; local7++) {
|
|
if (arg2[arg0 + local7] == null) {
|
|
arg2[local7 + arg0] = Static193.aClass100_853;
|
|
}
|
|
local5 += arg2[local7 + arg0].length;
|
|
}
|
|
@Pc(39) byte[] local39 = new byte[local5];
|
|
@Pc(41) int local41 = 0;
|
|
for (@Pc(43) int local43 = 0; local43 < arg1; local43++) {
|
|
@Pc(52) JagString local52 = arg2[local43 + arg0];
|
|
Static289.method2612(local52.chars, 0, local39, local41, local52.length);
|
|
local41 += local52.length;
|
|
}
|
|
@Pc(71) JagString local71 = new JagString();
|
|
local71.length = local5;
|
|
local71.chars = local39;
|
|
return local71;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!jd", name = "a", descriptor = "(II)I")
|
|
public static int method2356(@OriginalArg(1) int arg0) {
|
|
return arg0 & 0x7F;
|
|
}
|
|
}
|