mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-21 02:15:14 -06:00
Consolidated a bunch of static classes
This commit is contained in:
parent
cf6a86e926
commit
774d382816
260 changed files with 4163 additions and 4536 deletions
|
|
@ -13,16 +13,30 @@ public class VarpDomain {
|
|||
public static final int[] activeVarps = new int[3500];
|
||||
@OriginalMember(owner = "client!fi", name = "n", descriptor = "I")
|
||||
public static int updatedVarpsWriterIndex = 0;
|
||||
@OriginalMember(owner = "client!qc", name = "K", descriptor = "Lclient!sc;")
|
||||
public static HashTable aClass133_20 = new HashTable(16);
|
||||
|
||||
@OriginalMember(owner = "client!nh", name = "a", descriptor = "(BII)V")
|
||||
public static void set(@OriginalArg(1) int value, @OriginalArg(2) int id) {
|
||||
varp[id] = value;
|
||||
@Pc(20) LongNode local20 = (LongNode) Static199.aClass133_20.get((long) id);
|
||||
@Pc(20) LongNode local20 = (LongNode) aClass133_20.get((long) id);
|
||||
if (local20 == null) {
|
||||
local20 = new LongNode(4611686018427387905L);
|
||||
Static199.aClass133_20.put(local20, (long) id);
|
||||
aClass133_20.put(local20, (long) id);
|
||||
} else if (local20.value != 4611686018427387905L) {
|
||||
local20.value = MonotonicClock.currentTimeMillis() + 500L | 0x4000000000000000L;
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!aj", name = "i", descriptor = "(I)V")
|
||||
public static void reset() {
|
||||
for (@Pc(3) int local3 = 0; local3 < VarpTypeList.anInt4043; local3++) {
|
||||
@Pc(19) VarpType local19 = VarpTypeList.get(local3);
|
||||
if (local19 != null && local19.clientCode == 0) {
|
||||
varp[local3] = 0;
|
||||
activeVarps[local3] = 0;
|
||||
}
|
||||
}
|
||||
aClass133_20 = new HashTable(16);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue