# Node

## 🔗 Node Class

The base graph node.

> Namespace: `Esper.FeelSpeak.Graph`\
> Inherits from: `GraphElement`\
> Type: `abstract class`

***

### 📦 Fields

| Access   | Field               | Type               | Description                       |
| -------- | ------------------- | ------------------ | --------------------------------- |
| `public` | `id`                | `int`              | The node ID.                      |
| `public` | `position`          | `Vector2`          | The position in the graph.        |
| `public` | `inputConnections`  | `List<Connection>` | A list of all input connections.  |
| `public` | `outputConnections` | `List<Connection>` | A list of all output connections. |

***

### 🔍 Properties

| Access   | Property                   | Type   | Description                                                                                     |
| -------- | -------------------------- | ------ | ----------------------------------------------------------------------------------------------- |
| `public` | `IsImmediateExecutionNode` | `bool` | If this node type executes immediately during dialogue (SoundNode, ActionNode, or BooleanNode). |

***

### 🧰 Methods

| Access            | Method                 | Returns | Description                                                                               |
| ----------------- | ---------------------- | ------- | ----------------------------------------------------------------------------------------- |
| `public`          | `Node(int, Vector2)`   | -       | Constructor that initializes the node with ID and position.                               |
| `public`          | `ContainsText(string)` | `bool`  | Returns true if the node's text of any locale contains a given string (case-insensitive). |
| `public abstract` | `IsComplete()`         | `bool`  | Checks if the data is required to input in the node.                                      |
| `public abstract` | `InvokeEvent()`        | `void`  | Invokes this node's global event.                                                         |
