benilla-re systems structs docs

MovementGlobals

struct · collision · 312 bytes

Meaning
Holds the movement manager: log path and files, the mover list, the tick clock and the heartbeat deadline
Confidence
verified, proof one
Finding
collision/mover#movement-manager

Finding: Movement manager in collision: mover

One MovementGlobals of 312 bytes exists. Its pointer is the dword at +0xd4 of the object manager 0xb41414: 0x630a40 returns it through 0x4685e0 (0 when there is no object manager), and 0x630a30 stores it through 0x468600.

offsetholds
+0x000260 bytes of the log path given to 0x616860
+0x104, +0x108two log file handles, closed at teardown
+0x118the mover list: link offset 0, then the terminator at +0x11c and +0x120
+0x124bit 0 once initialised
+0x128the clock at the last tick
+0x12cthe end of the step being simulated
+0x130the active mover's heartbeat deadline

0x6169f0 writes +0x128 through its argument and returns 1 when the manager exists with bit 0 set, else returns 0.

The derivation is in the doc.

Fields 8

offsetsizetypenamemeaningconfidencefinding
0x0000260char[260]m_logPathHolds the movement log path copied by 0x616860verified, proof onecollision/mover#initialisation-and-teardown
0x01044void *m_logFileHolds a log file handle, closed by 0x7c4e90 and 0x616910inferredcollision/mover#initialisation-and-teardown
0x01084void *m_fallLogFileHolds a second log file handle, closed by 0x616910inferredcollision/mover#initialisation-and-teardown
0x011812void *[3]m_moversHolds the list of movers with work pending: link offset 0, then the terminator linkverified, proof onecollision/mover#per-frame-tick
0x01244uint32_tm_flagsHolds bit 0 once 0x616860 has initialised the managerverified, proof onecollision/mover#movement-manager
0x01284uint32_tm_lastTickTimeHolds the clock at the last tick, written by 0x616860 and 0x616800verified, proof onecollision/mover#per-frame-tick
0x012c4uint32_tm_stepTimeHolds the end of the step being simulated, written per step by 0x616620verified, proof onecollision/mover#local-player-step
0x01304uint32_tm_heartbeatDeadlineHolds the time of the active mover's next heartbeat, set by 0x615b80 and moved by 0x615ae0verified, proof onecollision/mover#heartbeat-and-skipped-time