RSX Code Reference
    Preparing search index...
    • rsx
    • RpcContext

    Class RpcContext

    Global context set during RPC invocation.

    Provides access to the calling connection and allows setting a return value. The context is only valid during the RPC handler execution.

    Index
    • get callId(): number

      Gets the unique ID of this RPC call.

      Returns number

      The call ID.

    • get connectionId(): number

      Gets the ID of the connection that sent this RPC.

      Returns number

      The sender connection ID, or kNetConnectionIdInvalid for local calls.

    • get objectId(): number

      Gets the target instance's NetObjectId.

      Returns number

      The target NetObjectId.

    • get scene(): SceneInstance

      Gets the active scene from the session context.

      Returns SceneInstance

      The active scene, or nullptr if no scene is active.

    • get sceneNodeManager(): SceneNodeManager

      Gets the SceneNodeManager from the active scene.

      Returns SceneNodeManager

      The SceneNodeManager, or nullptr if no scene is active.

    • Checks if a return value was set.

      Returns boolean

      True if a return value was set, false otherwise.