Class OuterNode

An outer node is a node of the tree that does not have child nodes.

In most cases those nodes will be used as component or system nodes.

Hierarchy (view full)

Constructors

Properties

_engine: Engine

Engine instance of the node's graph.

_id: string

Node's ID, generate it with nanoid if applicable.

_isLoaded: boolean

Get wether the node is loaded.

_parent: Engine | TreeNode

Node's parent node, if root node, the parent node is replaced by the engine instance.

Accessors

Methods

  • Sealed

    Called at parent nodes fixedStep or directly by the engine's step if this node is the rootNode.

    Calls the onFixedStep method.

    Returns void

  • Sealed

    Called at parent nodes loading or directly by the engine's loading if this node is the rootNode.

    Calls the onLoad method.

    Returns void

  • Called by the parent node when loaded, this method is to be implemented when needed.

    If this node is the engine's root node, this method will be called by the engine instead.

    Returns void

  • Called by the parent node at each step of the loop, this method is to be implemented when needed.

    Parameters

    • delta: number

    Returns void

  • Called by the parent node at unload, this method is to be implemented when needed.

    If this node is the engine's root node, this method will be called by the engine instead.

    Returns void

  • Sealed

    Called at parent nodes step or directly by the engine's step if this node is the rootNode.

    Calls the onStep method.

    Parameters

    • delta: number

    Returns void

  • Sealed

    Called at parent nodes unload or directly by the engine's unload if this node is the rootNode.

    Calls the onUnload method.

    Returns void