Skip to main content

player_classes

Function player_classes 

Source
pub unsafe fn player_classes(player: *mut IPlayer) -> *mut IPlayerClassData
Expand description

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

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

§Safety

player must be a live IPlayer.