benilla-re systems structs docs

GameTimeSet

function · gametime · primitive

Address
0x6434d0 · 198 bytes, up to 0x643595
Signature
void __thiscall (void *this, const WowTime *time, bool force)
Meaning
Sets the clock's time with its offsets applied; a forced set re-enters the minute
Confidence
verified, proof two
Finding
gametime/overview#setting-the-time
Test
gametime::gametime_6434d0_set_time

Finding: Setting the time in gametime: overview

0x6434d0(time, force) copies the 28-byte time, adds the minute offset +0x20 to its minute of day (plus 1440 when the sum is negative, else modulo 1440) and the day offset +0x24 in days, and stores it as the clock's time. With force set it then steps the time back one minute (minute 0 becomes 59 of the previous hour, hour 0 of the previous day) and advances one minute, so the callbacks for the new minute run and +0x38 and +0x3c restart. A forced set shows the sent hour and minute taken modulo a day, and 00:01 when either is unset.

The derivation is in the doc.

Callers 4

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.