Moved source to rt4 package so external code can depend on it

This commit is contained in:
Pazaz 2022-04-25 05:31:58 -04:00
parent dc6deb9151
commit 153d8569b5
624 changed files with 1253 additions and 7 deletions

View file

@ -0,0 +1,97 @@
package rt4;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static7 {
@OriginalMember(owner = "client!ah", name = "t", descriptor = "I")
public static int anInt986;
@OriginalMember(owner = "client!ah", name = "j", descriptor = "[I")
public static final int[] varps = new int[2500];
@OriginalMember(owner = "client!ah", name = "n", descriptor = "I")
public static int anInt983 = 0;
@OriginalMember(owner = "client!ah", name = "p", descriptor = "Lclient!ih;")
public static final LinkedList aClass69_32 = new LinkedList();
@OriginalMember(owner = "client!ah", name = "b", descriptor = "(I)V")
public static void method843() {
if (Static118.aClass13_15 != null || Static105.aClass13_14 != null) {
return;
}
@Pc(20) int local20 = Mouse.clickButton;
@Pc(93) int local93;
@Pc(99) int local99;
if (!Static60.aBoolean108) {
if (local20 == 1 && Static231.anInt5204 > 0) {
@Pc(37) short local37 = Static39.aShortArray6[Static231.anInt5204 - 1];
if (local37 == 25 || local37 == 23 || local37 == 48 || local37 == 7 || local37 == 13 || local37 == 47 || local37 == 5 || local37 == 43 || local37 == 35 || local37 == 58 || local37 == 22 || local37 == 1006) {
local93 = Static196.anIntArray408[Static231.anInt5204 - 1];
local99 = Static56.anIntArray142[Static231.anInt5204 - 1];
@Pc(103) Component local103 = InterfaceList.getComponent(local99);
@Pc(106) ServerActiveProperties local106 = InterfaceList.getServerActiveProperties(local103);
if (local106.method511() || local106.isObjReplaceEnabled()) {
Static78.anInt2145 = 0;
Static123.aBoolean155 = false;
if (Static118.aClass13_15 != null) {
Static43.redraw(Static118.aClass13_15);
}
Static118.aClass13_15 = InterfaceList.getComponent(local99);
Static149.anInt3554 = Mouse.clickX;
Static206.anInt4773 = Mouse.clickY;
Static4.anInt36 = local93;
Static43.redraw(Static118.aClass13_15);
return;
}
}
}
if (local20 == 1 && (Static116.anInt2952 == 1 && Static231.anInt5204 > 2 || Static277.method4640(Static231.anInt5204 - 1))) {
local20 = 2;
}
if (local20 == 2 && Static231.anInt5204 > 0 || Static226.anInt3953 == 1) {
Static226.method3901();
}
if (local20 == 1 && Static231.anInt5204 > 0 || Static226.anInt3953 == 2) {
Static59.method1372();
}
return;
}
@Pc(204) int local204;
if (local20 != 1) {
local93 = Mouse.anInt5032;
local204 = Mouse.anInt4873;
if (local204 < Static183.anInt4271 - 10 || local204 > Static24.anInt761 + Static183.anInt4271 + 10 || Static229.anInt5138 - 10 > local93 || local93 > Static13.anInt436 + Static229.anInt5138 + 10) {
Static60.aBoolean108 = false;
Static133.method4012(Static183.anInt4271, Static24.anInt761, Static229.anInt5138, Static13.anInt436);
}
}
if (local20 != 1) {
return;
}
local204 = Static183.anInt4271;
local93 = Static229.anInt5138;
local99 = Static24.anInt761;
@Pc(265) int local265 = Mouse.clickX;
@Pc(267) int local267 = Mouse.clickY;
@Pc(269) int local269 = -1;
for (@Pc(271) int local271 = 0; local271 < Static231.anInt5204; local271++) {
@Pc(289) int local289;
if (Static261.aBoolean298) {
local289 = (Static231.anInt5204 - local271 - 1) * 15 + local93 + 35;
} else {
local289 = (Static231.anInt5204 - local271 - 1) * 15 + local93 + 31;
}
if (local265 > local204 && local204 + local99 > local265 && local289 - 13 < local267 && local289 + 3 > local267) {
local269 = local271;
}
}
if (local269 != -1) {
ClientProt.method2232(local269);
}
Static60.aBoolean108 = false;
Static133.method4012(Static183.anInt4271, Static24.anInt761, Static229.anInt5138, Static13.anInt436);
}
}