Refactored much of the protocol class, new class names for a few

Class3_Sub31 -> ComponentPointer
Class3_Sub22 -> ClanMember
Class102 -> MapMarker
Class3_Sub7 -> SceneryStack
This commit is contained in:
Pazaz 2022-04-27 02:59:48 -04:00
parent 2e4cc73755
commit 83a07e779e
118 changed files with 2196 additions and 2289 deletions

View file

@ -28,16 +28,16 @@ public final class Static118 {
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 != null && local15.layer == arg0 && (!local15.usingScripts || !Static36.method947(local15))) {
if (local15.type == 0) {
if (!local15.aBoolean32 && Static36.method947(local15) && local15 != Static180.aClass13_22) {
if (!local15.usingScripts && Static36.method947(local15) && local15 != Static180.aClass13_22) {
continue;
}
method2354(local15.id, arg1);
if (local15.createdComponents != null) {
method2354(local15.id, local15.createdComponents);
}
@Pc(73) Class3_Sub31 local73 = (Class3_Sub31) Static119.aClass133_9.get((long) local15.id);
@Pc(73) ComponentPointer local73 = (ComponentPointer) InterfaceList.openInterfaces.get((long) local15.id);
if (local73 != null) {
Static96.method1949(local73.anInt5878);
}
@ -71,19 +71,19 @@ public final class Static118 {
local15.anInt496 = -1;
}
}
Static43.redraw(local15);
InterfaceList.redraw(local15);
}
}
}
}
if (local15.modelRotationSpeed != 0 && !local15.aBoolean32) {
if (local15.modelRotationSpeed != 0 && !local15.usingScripts) {
@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.redraw(local15);
InterfaceList.redraw(local15);
}
}
}