benilla-re systems structs docs

s_destroyTypeMap

global · ui

Address
0x467ad4 · 129 bytes, up to 0x467b54
Type
uint8_t[129]
Meaning
Maps an object type value to the destructor arm or the skip arm of the manager's destruction
Confidence
verified, proof one
Finding
ui/worldenter#a-world-transfer

Finding: A world transfer in ui: entering and leaving the world

SMSG_NEW_WORLD (opcode 0x3e, 0x401b00) schedules 0x401bc0, which destroys the object manager (0x467700) and builds a new one for the new map. The destruction destroys the player, which runs the leave function and fires PLAYER_LEAVING_WORLD. The initializer does not run, so PLAYER_LOGIN does not fire again. When the server sends the player's create block the arrival takes the fresh-login route and fires PLAYER_ENTERING_WORLD.

The derivation is in the doc.