ProtectedconstructorOptionalisInternalConstructor: booleanReturns the currently active scene instance.
The active scene, or nullptr if in Lobby mode.
Sets the current game state. The game state is shared across all connected clients. The host has full authority over the game state.
Sets the current game state. The game state is shared across all connected clients. The host has full authority over the game state.
Sets the current game state. The game state is shared across all connected clients. The host has full authority over the game state.
Returns true if replication is currently paused.
True if in Transitioning mode or otherwise paused.
Returns the local connection ID for this session.
The local connection ID from the session manager.
Returns the current session mode.
Current mode (Lobby, ActiveScene, or Transitioning).
Returns the SceneNodeManager for the active scene.
The object manager, or nullptr if no scene is active.
Sets the scene transition ID.
Sets the player state for a specific connection. The player state is specific to each connected client. The host has full authority over all player states.
The new player state to set.
The connection ID of the player whose state is being set.
True if the player state was successfully set.
ReadonlyonEvent triggered when the session mode changes.
ReadonlyonEvent triggered when a scene transition begins.
ReadonlyonEvent triggered when a scene transition completes.
ReadonlyonEvent triggered when the scene is cleared.
ReadonlyonEvent triggered when an object is replicated (state applied). Client only.
Network session context managing replication scope.
A session context can operate in different modes: - Lobby: No scene, pure IReflectable replication only - ActiveScene: Scene-based replication with SceneObjects - Transitioning: Scene change in progress, replication paused
Example usage:
Note
The session context defines the scope of replication for a NetSession. It manages the association between the session and optional SceneInstance, and provides access to the replication manager.