PokéRogue
    Preparing search index...

    RenderNode

    Hierarchy (View Summary)

    Index
    • Parameters

      • name: string

        The name of the RenderNode.

      • manager: RenderNodeManager

        The manager that owns this RenderNode.

      Returns RenderNode

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Run the RenderNode. This is a stub method that should be overridden by the specific implementation.

      This method may be wrapped by setDebug.

      Parameters

      • ...args: any[]

        Arguments to pass to the node. These will vary depending on the node.

      Returns void

    • Enables or disables debug reporting for this node.

      When enabled, the run method is replaced with a wrapper that pushes the node's name onto the manager's debug stack before execution and pops it afterwards, allowing the renderer to track which nodes are active. The original run implementation is preserved in _run.

      When disabled, the original run method is restored and _run is cleared.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void