Refactor Timer classes and associated code in GameShell

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 4 years ago
parent 4e4b0aad40
commit 4616401987
  1. 274
      share/deob/map/client.yaml

@ -88,7 +88,7 @@ classes:
client!h: "Class73" client!h: "Class73"
client!hc: "ByteArray" client!hc: "ByteArray"
client!he: "Class53_Sub2" client!he: "Class53_Sub2"
client!hf: "Class77_Sub1" client!hf: "NanoTimer"
client!hi: "Class79" client!hi: "Class79"
client!hk: "Class4_Sub1_Sub11" client!hk: "Class4_Sub1_Sub11"
client!hl: "Class81" client!hl: "Class81"
@ -109,7 +109,7 @@ classes:
client!jb: "GzipDecompressor" client!jb: "GzipDecompressor"
client!jc: "Class4_Sub3_Sub12" client!jc: "Class4_Sub3_Sub12"
client!jd: "Class94" client!jd: "Class94"
client!jf: "Class77" client!jf: "Timer"
client!jg: "SoftReferenceNodeFactory" client!jg: "SoftReferenceNodeFactory"
client!jh: "Class96" client!jh: "Class96"
client!jj: "Class4_Sub1_Sub12" client!jj: "Class4_Sub1_Sub12"
@ -165,7 +165,7 @@ classes:
client!ni: "Node" client!ni: "Node"
client!nk: "Interface4" client!nk: "Interface4"
client!nm: "Class102_Sub2" client!nm: "Class102_Sub2"
client!nn: "Class77_Sub2" client!nn: "MiscTimer"
client!no: "Class4_Sub1_Sub19" client!no: "Class4_Sub1_Sub19"
client!o: "Class53_Sub5" client!o: "Class53_Sub5"
client!oa: "Class4_Sub3_Sub14_Sub2" client!oa: "Class4_Sub3_Sub14_Sub2"
@ -181,7 +181,7 @@ classes:
client!ol: "Class4_Sub20" client!ol: "Class4_Sub20"
client!om: "Class130" client!om: "Class130"
client!on: "Class4_Sub21" client!on: "Class4_Sub21"
client!oo: "Class77_Sub3" client!oo: "MillisTimer"
client!p: "Class53_Sub1_Sub2" client!p: "Class53_Sub1_Sub2"
client!pa: "Class131" client!pa: "Class131"
client!pb: "Class4_Sub8_Sub1" client!pb: "Class4_Sub8_Sub1"
@ -384,8 +384,8 @@ fields:
owner: "Class4_Sub1_Sub1" owner: "Class4_Sub1_Sub1"
name: "anInt79" name: "anInt79"
client!ac.cb I: client!ac.cb I:
owner: "Static1" owner: "GameShell"
name: "anInt80" name: "timePerFrame"
client!ac.db Ljava/lang/String;: client!ac.db Ljava/lang/String;:
owner: "LocalisedText" owner: "LocalisedText"
name: "WALKHERE" name: "WALKHERE"
@ -1641,8 +1641,8 @@ fields:
owner: "Static2" owner: "Static2"
name: "aByteArrayArray9" name: "aByteArrayArray9"
client!de.s Lclient!jf;: client!de.s Lclient!jf;:
owner: "Static2" owner: "GameShell"
name: "aClass77_1" name: "timer"
client!de.u I: client!de.u I:
owner: "Class11_Sub2" owner: "Class11_Sub2"
name: "anInt951" name: "anInt951"
@ -3393,23 +3393,23 @@ fields:
owner: "LocalisedText" owner: "LocalisedText"
name: "MAINLOAD120B" name: "MAINLOAD120B"
client!hf.f J: client!hf.f J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "aLong70" name: "time"
client!hf.g J: client!hf.g J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "aLong71" name: "nextFrame"
client!hf.h J: client!hf.h J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "aLong72" name: "previousFrame"
client!hf.i I: client!hf.i I:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "anInt2178" name: "durationPointer"
client!hf.j I: client!hf.j I:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "anInt2179" name: "windowSize"
client!hf.k [J: client!hf.k [J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "aLongArray14" name: "durations"
client!hg.a I: client!hg.a I:
owner: "Static3" owner: "Static3"
name: "anInt2180" name: "anInt2180"
@ -3564,8 +3564,8 @@ fields:
owner: "Static3" owner: "Static3"
name: "anIntArray189" name: "anIntArray189"
client!ho.R I: client!ho.R I:
owner: "Static3" owner: "GameShell"
name: "anInt2295" name: "framesPerSecond"
client!ho.S Lclient!wl;: client!ho.S Lclient!wl;:
owner: "Static3" owner: "Static3"
name: "aClass189_4" name: "aClass189_4"
@ -4767,8 +4767,8 @@ fields:
owner: "Static4" owner: "Static4"
name: "anInt2853" name: "anInt2853"
client!kf.a I: client!kf.a I:
owner: "Static4" owner: "GameShell"
name: "anInt2832" name: "redrawTimePointer"
client!kf.b [B: client!kf.b [B:
owner: "Bzip2DState" owner: "Bzip2DState"
name: "strmNextIn" name: "strmNextIn"
@ -5724,8 +5724,8 @@ fields:
owner: "Class117" owner: "Class117"
name: "aClass62_Sub1Array1" name: "aClass62_Sub1Array1"
client!mg.p I: client!mg.p I:
owner: "Static4" owner: "GameShell"
name: "anInt3326" name: "logicCycles"
client!mg.q Ljava/awt/Frame;: client!mg.q Ljava/awt/Frame;:
owner: "GameShell" owner: "GameShell"
name: "frame" name: "frame"
@ -6438,8 +6438,8 @@ fields:
owner: "Static5" owner: "Static5"
name: "anInt3487" name: "anInt3487"
client!nd.u I: client!nd.u I:
owner: "Static5" owner: "GameShell"
name: "anInt3488" name: "partialRedraws"
client!nd.w [I: client!nd.w [I:
owner: "Class4_Sub18" owner: "Class4_Sub18"
name: "anIntArray385" name: "anIntArray385"
@ -6777,23 +6777,23 @@ fields:
owner: "Static5" owner: "Static5"
name: "anInterface5_1" name: "anInterface5_1"
client!nn.f J: client!nn.f J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "aLong130" name: "time"
client!nn.g J: client!nn.g J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "aLong131" name: "nextFrame"
client!nn.h I: client!nn.h I:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "anInt3604" name: "durationPointer"
client!nn.i I: client!nn.i I:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "anInt3605" name: "windowSize"
client!nn.j J: client!nn.j J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "aLong132" name: "previousFrame"
client!nn.k [J: client!nn.k [J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "aLongArray28" name: "durations"
client!no.T Z: client!no.T Z:
owner: "Class4_Sub1_Sub19" owner: "Class4_Sub1_Sub19"
name: "aBoolean263" name: "aBoolean263"
@ -6912,8 +6912,8 @@ fields:
owner: "Static5" owner: "Static5"
name: "anIntArray567" name: "anIntArray567"
client!ob.k I: client!ob.k I:
owner: "Static5" owner: "GameShell"
name: "anInt5197" name: "logicTimePointer"
client!ob.l Ljava/awt/Image;: client!ob.l Ljava/awt/Image;:
owner: "Class59" owner: "Class59"
name: "anImage5" name: "anImage5"
@ -7287,23 +7287,23 @@ fields:
owner: "LocalisedText" owner: "LocalisedText"
name: "MAINLOAD50" name: "MAINLOAD50"
client!oo.f J: client!oo.f J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "aLong140" name: "nextFrame"
client!oo.g [J: client!oo.g [J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "aLongArray34" name: "durations"
client!oo.h I: client!oo.h I:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "anInt3951" name: "durationPointer"
client!oo.i J: client!oo.i J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "aLong141" name: "previousFrame"
client!oo.j I: client!oo.j I:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "anInt3952" name: "windowSize"
client!oo.k J: client!oo.k J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "aLong142" name: "time"
client!p.nc Lclient!ic;: client!p.nc Lclient!ic;:
owner: "Static5" owner: "Static5"
name: "aClass84_18" name: "aClass84_18"
@ -8235,8 +8235,8 @@ fields:
owner: "GameCanvas" owner: "GameCanvas"
name: "component" name: "component"
client!qm.b I: client!qm.b I:
owner: "Static6" owner: "GameShell"
name: "anInt4397" name: "minimumDelay"
client!qm.c I: client!qm.c I:
owner: "Static6" owner: "Static6"
name: "anInt4398" name: "anInt4398"
@ -8574,8 +8574,8 @@ fields:
owner: "Static6" owner: "Static6"
name: "anInt4513" name: "anInt4513"
client!rg.kb [J: client!rg.kb [J:
owner: "Static6" owner: "GameShell"
name: "aLongArray40" name: "logicTimes"
client!rg.lb I: client!rg.lb I:
owner: "Class4_Sub1_Sub26" owner: "Class4_Sub1_Sub26"
name: "anInt4515" name: "anInt4515"
@ -10311,8 +10311,8 @@ fields:
owner: "Static7" owner: "Static7"
name: "anInt768" name: "anInt768"
client!ue.i [J: client!ue.i [J:
owner: "Static7" owner: "GameShell"
name: "aLongArray8" name: "redrawTimes"
client!ue.m S: client!ue.m S:
owner: "Static7" owner: "Static7"
name: "aShort11" name: "aShort11"
@ -15660,8 +15660,8 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!d.c (I)J: client!d.c (I)J:
owner: "Static12" owner: "GameShell"
name: "method727" name: "time"
arguments: {} arguments: {}
locals: {} locals: {}
client!da.<init> (III)V: client!da.<init> (III)V:
@ -19629,12 +19629,12 @@ methods:
1: "expectedChecksum" 1: "expectedChecksum"
locals: {} locals: {}
client!fo.a (B)Lclient!jf;: client!fo.a (B)Lclient!jf;:
owner: "Static16" owner: "Timer"
name: "method1500" name: "create"
arguments: {} arguments: {}
locals: locals:
8: "local8" 8: "ex"
20: "local20" 20: "ex2"
client!fo.a (IB)V: client!fo.a (IB)V:
owner: "Static16" owner: "Static16"
name: "method1501" name: "method1501"
@ -22124,36 +22124,36 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!hf.<init> ()V: client!hf.<init> ()V:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "<init>" name: "<init>"
arguments: {} arguments: {}
locals: {} locals: {}
client!hf.a (B)J: client!hf.a (B)J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "method1731" name: "getDelta"
arguments: {} arguments: {}
locals: locals:
1: "local1" 1: "current"
7: "local7" 7: "duration"
45: "local45" 45: "sum"
47: "local47" 47: "i"
client!hf.a (III)I: client!hf.a (III)I:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "method3283" name: "sleep"
arguments: arguments:
0: "arg0" 0: "minimumDelay"
2: "arg1" 2: "timePerFrame"
locals: locals:
15: "local15" 15: "timePerFrameNanos"
31: "local31" 31: "logicCycles"
client!hf.c (I)V: client!hf.c (I)V:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "method3288" name: "reset"
arguments: {} arguments: {}
locals: {} locals: {}
client!hf.d (I)J: client!hf.d (I)J:
owner: "Class77_Sub1" owner: "NanoTimer"
name: "method3289" name: "time"
arguments: {} arguments: {}
locals: {} locals: {}
client!hg.a (II)V: client!hg.a (II)V:
@ -22268,12 +22268,12 @@ methods:
160: "local160" 160: "local160"
184: "local184" 184: "local184"
client!hh.a (B)V: client!hh.a (B)V:
owner: "Static18" owner: "GameShell"
name: "method4371" name: "resetTimer"
arguments: {} arguments: {}
locals: locals:
10: "local10" 10: "i"
27: "local27" 27: "i"
client!hh.a (II)V: client!hh.a (II)V:
owner: "Static18" owner: "Static18"
name: "method4372" name: "method4372"
@ -24172,11 +24172,11 @@ methods:
158: "local158" 158: "local158"
169: "local169" 169: "local169"
client!jf.a (III)I: client!jf.a (III)I:
owner: "Class77" owner: "Timer"
name: "method3283" name: "sleep"
arguments: arguments:
0: "arg0" 0: "minimumDelay"
2: "arg1" 2: "timePerFrame"
locals: {} locals: {}
client!jf.a (IIIIIII)V: client!jf.a (IIIIIII)V:
owner: "Static21" owner: "Static21"
@ -24563,13 +24563,13 @@ methods:
locals: locals:
10: "local10" 10: "local10"
client!jf.c (I)V: client!jf.c (I)V:
owner: "Class77" owner: "Timer"
name: "method3288" name: "reset"
arguments: {} arguments: {}
locals: {} locals: {}
client!jf.d (I)J: client!jf.d (I)J:
owner: "Class77" owner: "Timer"
name: "method3289" name: "time"
arguments: {} arguments: {}
locals: {} locals: {}
client!jg.a (ILclient!cn;)Lclient!cn;: client!jg.a (ILclient!cn;)Lclient!cn;:
@ -32366,38 +32366,38 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!nn.<init> ()V: client!nn.<init> ()V:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "<init>" name: "<init>"
arguments: {} arguments: {}
locals: {} locals: {}
client!nn.a (III)I: client!nn.a (III)I:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "method3283" name: "sleep"
arguments: arguments:
0: "arg0" 0: "minimumDelay"
2: "arg1" 2: "timePerFrame"
locals: locals:
13: "local13" 13: "timePerFrameNanos"
72: "local72" 72: "logicCycles"
client!nn.c (I)V: client!nn.c (I)V:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "method3288" name: "reset"
arguments: {} arguments: {}
locals: {} locals: {}
client!nn.d (I)J: client!nn.d (I)J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "method3289" name: "time"
arguments: {} arguments: {}
locals: {} locals: {}
client!nn.e (I)J: client!nn.e (I)J:
owner: "Class77_Sub2" owner: "MiscTimer"
name: "method3021" name: "getDuration"
arguments: {} arguments: {}
locals: locals:
1: "local1" 1: "now"
7: "local7" 7: "duration"
12: "local12" 12: "sum"
52: "local52" 52: "i"
client!no.<init> ()V: client!no.<init> ()V:
owner: "Class4_Sub1_Sub19" owner: "Class4_Sub1_Sub19"
name: "<init>" name: "<init>"
@ -33818,33 +33818,33 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!oo.a (III)I: client!oo.a (III)I:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "method3283" name: "sleep"
arguments: arguments:
0: "arg0" 0: "minimumDelay"
2: "arg1" 2: "timePerFrame"
locals: locals:
22: "local22" 22: "timePerFrameNanos"
70: "local70" 70: "logicCycles"
client!oo.c (I)V: client!oo.c (I)V:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "method3288" name: "reset"
arguments: {} arguments: {}
locals: {} locals: {}
client!oo.d (I)J: client!oo.d (I)J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "method3289" name: "time"
arguments: {} arguments: {}
locals: {} locals: {}
client!oo.e (I)J: client!oo.e (I)J:
owner: "Class77_Sub3" owner: "MillisTimer"
name: "method3290" name: "getDelta"
arguments: {} arguments: {}
locals: locals:
6: "local6" 6: "now"
12: "local12" 12: "duration"
15: "local15" 15: "sum"
55: "local55" 55: "i"
client!p.a (BLclient!ua;)V: client!p.a (BLclient!ua;)V:
owner: "Class53_Sub1_Sub2" owner: "Class53_Sub1_Sub2"
name: "method3317" name: "method3317"
@ -42692,8 +42692,8 @@ methods:
name: "mainLoopWrapper" name: "mainLoopWrapper"
arguments: {} arguments: {}
locals: locals:
6: "local6" 6: "now"
10: "local10" 10: "previous"
client!ue.a (II)V: client!ue.a (II)V:
owner: "Static35" owner: "Static35"
name: "method676" name: "method676"
@ -42778,7 +42778,7 @@ methods:
locals: {} locals: {}
client!ue.c (Z)V: client!ue.c (Z)V:
owner: "GameShell" owner: "GameShell"
name: "method682" name: "loadMiscNatives"
arguments: {} arguments: {}
locals: locals:
18: "request" 18: "request"
@ -42788,9 +42788,9 @@ methods:
name: "mainRedrawWrapper" name: "mainRedrawWrapper"
arguments: {} arguments: {}
locals: locals:
14: "local14" 14: "now"
18: "local18" 18: "previous"
42: "local42" 42: "duration"
86: "insets" 86: "insets"
client!ue.destroy ()V: client!ue.destroy ()V:
owner: "GameShell" owner: "GameShell"
@ -45955,10 +45955,10 @@ methods:
8: "local8" 8: "local8"
39: "local39" 39: "local39"
client!wi.a (II)V: client!wi.a (II)V:
owner: "Static37" owner: "GameShell"
name: "method4782" name: "setFramesPerSecond"
arguments: arguments:
0: "arg0" 0: "fps"
locals: {} locals: {}
client!wi.a (IIIIIZII)Z: client!wi.a (IIIIIZII)Z:
owner: "Static37" owner: "Static37"

Loading…
Cancel
Save