gametime
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 15 | 15 (100%) | 10 (66%) | 3 (20%) | 6 (40%) |
| globals | 5 | 5 (100%) | 5 (100%) | 0 (0%) | – |
| structs | 0 | – | – | – | – |
| fields | 0 | – | – | – | – |
| all | 20 | 20 (100%) | 15 (75%) | 3 (15%) | 6 (40%) |
Docs
gametime: messages
The server's game-time messages and what they do to the clock of overview: the packed date, the handlers of opcodes 0x47, 0x43, 0x45 and 0x49 (opcode 0x42 is net/messages' Time
speed packet), the bridge that stamps the light state after a new time, their registration, and the census of events. The handlers and the bridge are owned by no system yet, and the clock's
methods they call are overview's.
gametime: overview
The game clock: the server-synced time of day the world is lit and sounded by. One object, at
0xce8538 (0x70 bytes), is built by a static initializer and driven by the server's time messages
and a per-frame update. Its methods are 0x643300 to 0x643c30. The object holds a time (minute at
+0, hour at +4, then weekday, day, month and year), two offsets, a fractional-minute accumulator,
a time scale, the tick of the last minute and a table of callbacks per minute of the day. The
table's template code (0x6433f0, 0x643cb0 and after 0x643d10) has no identified object file and
stays unassigned, as do the message handlers and the singleton's initializer in 0x6c5bc0 to
0x6c6200; their calls are stated in messages. The time helpers it calls, 0x6424c0 and the rest of
0x642300 to 0x642c30, belong to base.
The docs split by topic. overview is the clock: its state, the day phase, the per-frame and per-minute steps, the set, the sync and the time scale. messages is the server's game-time
messages and what they do to it.
Closure
7 roots. A walk of direct calls and jumps from them reaches 8 of the 15 functions the system owns, and stops at 9 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- GameTimeUpdate gametime
- GameTimeSync gametime
- GameTimeSet gametime
- GameTimeSetScale gametime
- GameTimeGetDayPhase gametime
- GameTimeConstruct gametime
- GameTimeAdvanceMinute gametime
Boundary
- __ftol crt
- OsGetAsyncTimeMs core
- WowTime::WowTime unassigned
- WowTime::GetDayNumber unassigned
- WowTime::AddDays unassigned
- WowTime::GetMinuteOfDay unassigned
- WowTime::SetMinuteOfDay unassigned
- WowTime::FormatTime unassigned
- LogDiscard unassigned
Functions 15
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x643300 | GameTimeConstruct | orchestration | verified, proof one | ✓ | |
0x643450 | GameTimeSetOffsets | unreached | inferred | ||
0x6434d0 | GameTimeSet | primitive | verified, proof two | ✓ | ✓ |
0x6435a0 | GameTimeUpdate | primitive | verified, proof one | ✓ | ✓ |
0x643640 | GameTimeSetFromHost | unreached | inferred | ||
0x6436c0 | GameTimeSync | primitive | verified, proof two | ✓ | ✓ |
0x643810 | GameTimeGetScale | unreached | inferred | ||
0x643820 | GameTimeSetScale | primitive | verified, proof two | ✓ | ✓ |
0x643890 | GameTimeAddCallback | unreached | inferred | ||
0x6439e0 | GameTimeRemoveCallback | unreached | inferred | ||
0x643a70 | GameTimeGetDayPhase | primitive | verified, proof one | ✓ | ✓ |
0x643ad0 | GameTimeAdvanceMinute | primitive | verified, proof one | ✓ | ✓ |
0x643b30 | GameTimeRunCallbacks | orchestration | verified, proof one | ✓ | |
0x643bb0 | GameTimeFreeEntry | orchestration | verified, proof one | ||
0x643c30 | GameTimeUnlinkEntry | orchestration | verified, proof one |
Globals 5
| address | name | type | confidence |
|---|---|---|---|
0x80e448 | s_timeScaleMax | float | verified, proof one |
0x80e44c | s_gameTimeTableVtable | void *[4] | verified, proof one |
0x80e45c | s_timeScaleMin | float | verified, proof one |
0xce8538 | s_gameClockMinute | int32_t | verified, proof one |
0xce853c | s_gameClockHour | int32_t | verified, proof one |