A utility class for performing common functions on dialogue nodes, such as creating and handling IDs for nodes and their components.
More...
|
static int | NextID () |
| Increments the current ID and returns the new ID.
|
|
static int | CurrentID () |
| Returns the current ID.
|
|
static void | SetCurrentID (int id) |
| Sets the NodeUtils class current ID to the specified ID value.
|
|
static void | GenerateNewIDs (List< Node > nodes) |
| Generates a new set of IDs for each node in the provided List and all of its connections.
|
|
|
static int | currentId = 1 |
| The current ID value used for nodes and node components.
|
|
A utility class for performing common functions on dialogue nodes, such as creating and handling IDs for nodes and their components.
◆ CurrentID()
static int EasyTalk.Nodes.Core.NodeUtils.CurrentID |
( |
| ) |
|
|
static |
Returns the current ID.
- Returns
- The current ID.
◆ GenerateNewIDs()
static void EasyTalk.Nodes.Core.NodeUtils.GenerateNewIDs |
( |
List< Node > | nodes | ) |
|
|
static |
Generates a new set of IDs for each node in the provided List and all of its connections.
- Parameters
-
nodes | The List of Nodes to generate new IDs for. |
◆ NextID()
static int EasyTalk.Nodes.Core.NodeUtils.NextID |
( |
| ) |
|
|
static |
Increments the current ID and returns the new ID.
- Returns
- The next ID.
◆ SetCurrentID()
static void EasyTalk.Nodes.Core.NodeUtils.SetCurrentID |
( |
int | id | ) |
|
|
static |
Sets the NodeUtils class current ID to the specified ID value.
- Parameters
-
◆ currentId
int EasyTalk.Nodes.Core.NodeUtils.currentId = 1 |
|
staticprivate |
The current ID value used for nodes and node components.