public interface IPlayerManagerProvides read-only access to players in the active session.
Members
LocalPlayerGets the player controlled by this game instance, or null outside an active world.propertyConnectedPlayersGets a roster snapshot of all currently connected players.propertyTryGetPlayerTries to find a connected player by session client ID.methodLocalPlayer
propertyIPlayer? LocalPlayerGets the player controlled by this game instance, or null outside an active world.
ConnectedPlayers
propertyIReadOnlyList<IPlayer> ConnectedPlayersGets a roster snapshot of all currently connected players.
The returned list is a new read-only snapshot. Its
IPlayer objects continue to represent their players until they disconnect.TryGetPlayer
methodbool TryGetPlayer(ulong clientId, out IPlayer? player)Tries to find a connected player by session client ID.