CGPlayer_C::SetActivePlayerExtra
function · objectlayer · primitive
- Address
0x466de0· 23 bytes, up to0x466df6- Signature
void __thiscall (CGPlayer_C *this)- Meaning
- Points +0x1c68 at the extra block after the active player's watch copy
- Confidence
- verified, proof one
- Finding
- objectlayer/manager#allocating-and-reusing
- Test
objectlayer::player_dynfield_base_difftest
Finding: Allocating and reusing in objectlayer: manager
A new object of type 1 to 7 comes from its type's pool. Before allocating, the manager takes the
oldest object off that type's reuse list, if any, unlinks it from the released table, runs its
vtable slot 0 with 0 and returns it to the pool; so a released object survives until the next
object of its type is created or the destroy message names it. The active player is allocated
from the heap: its 0x3178-byte members and fields, 4 bytes per watched field, and a 0x2550-byte
block it points to at +0x1c68.
The derivation is in the doc.
Callers 1
- ObjectClearFields objectlayer
Callees 1
- ActivePlayerWatchedCount objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.