benilla-re systems structs docs

OnGameTimeSet

function · unassigned · primitive

Address
0x6c5f50 · 177 bytes, up to 0x6c6000
Signature
void __cdecl (void)
Meaning
Stamps the light state from the clock, recommits sky and fog, calls the time-changed callbacks and prints the time
Confidence
verified, proof two
Finding
gametime/messages#time-changed-bridge
Test
gametime::gametime_6c5f50_time_changed

Finding: Time changed bridge in gametime: messages

0x6c5f50() runs after the clock takes a new time. It stamps the first three words of the light state as each frame does: the minute of day (0x6424c0), the day phase (0x643a70, rounded once to a float) and the day number (0x642320, as a float); calls 0x66ff60(1, 0), the light commit with a full recompute and no eye stamp (lighting/fog#world-light-commit); calls each non-zero callback of the four at 0xce85a8 with the hour in ecx and the minute in edx; and writes Time set to %s for the clock, class 0. The four slots stay 0: the one function that sets one, 0x6c61e0, is unreached. Callers: 0x6c5eee (opcode 0x42) and 0x6c6180 (0x45).

The derivation is in the doc.

Callers 2

Callees 8

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