Skip to main content

player_objects

Function player_objects 

Source
pub unsafe fn player_objects(player: *mut IPlayer) -> *mut IPlayerObjectData
Expand description

The player’s IPlayerObjectData, or null when the component providing it is not loaded.

Found by walking the player’s extension map for PLAYER_OBJECTS_UID — the virtual getExtension does not consult that map. IExtension is IPlayerObjectData’s first base, so the extension pointer is the interface pointer.

§Safety

player must be a live IPlayer.