benilla-re systems structs docs

gametime

rowsnamedverifiedproof twotested
functions1515 (100%)10 (66%)3 (20%)6 (40%)
globals55 (100%)5 (100%)0 (0%)–
structs0––––
fields0––––
all2020 (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

Boundary

Functions 15

addressnameclassconfidencetestclosure
0x643300GameTimeConstructorchestrationverified, proof one✓
0x643450GameTimeSetOffsetsunreachedinferred
0x6434d0GameTimeSetprimitiveverified, proof two✓✓
0x6435a0GameTimeUpdateprimitiveverified, proof one✓✓
0x643640GameTimeSetFromHostunreachedinferred
0x6436c0GameTimeSyncprimitiveverified, proof two✓✓
0x643810GameTimeGetScaleunreachedinferred
0x643820GameTimeSetScaleprimitiveverified, proof two✓✓
0x643890GameTimeAddCallbackunreachedinferred
0x6439e0GameTimeRemoveCallbackunreachedinferred
0x643a70GameTimeGetDayPhaseprimitiveverified, proof one✓✓
0x643ad0GameTimeAdvanceMinuteprimitiveverified, proof one✓✓
0x643b30GameTimeRunCallbacksorchestrationverified, proof one✓
0x643bb0GameTimeFreeEntryorchestrationverified, proof one
0x643c30GameTimeUnlinkEntryorchestrationverified, proof one

Globals 5

addressnametypeconfidence
0x80e448s_timeScaleMaxfloatverified, proof one
0x80e44cs_gameTimeTableVtablevoid *[4]verified, proof one
0x80e45cs_timeScaleMinfloatverified, proof one
0xce8538s_gameClockMinuteint32_tverified, proof one
0xce853cs_gameClockHourint32_tverified, proof one