EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Nodes.Core.NodeUtils Class Reference

A utility class for performing common functions on dialogue nodes, such as creating and handling IDs for nodes and their components. More...

Static Public Member Functions

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 Private Attributes

static int currentId = 1
 The current ID value used for nodes and node components.
 

Detailed Description

A utility class for performing common functions on dialogue nodes, such as creating and handling IDs for nodes and their components.

Member Function Documentation

◆ 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
nodesThe 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
idThe ID value to use.

Member Data Documentation

◆ currentId

int EasyTalk.Nodes.Core.NodeUtils.currentId = 1
staticprivate

The current ID value used for nodes and node components.