Choice Node
⚙️ ChoiceNode Class
A node that contains choice data.
Namespace:
Esper.FeelSpeak.GraphInherits from:NodeType:class
📦 Fields
public
useTimeout
bool
If there should be limited time to make a choice.
public
timeout
float
The length of time the player has to make a choice.
public
timeoutChoiceIsRandom
bool
If a random option should be selected when time runs out.
public
timeoutChoiceIndex
int
The index of the option selected automatically when time runs out.
public
choices
List<Choice>
A list of choices.
🧰 Methods
public
ChoiceNode(int, Vector2)
-
Constructor that initializes the node with ID and position.
public
AddChoice()
void
Adds a choice.
protected
UpdateIndices()
void
Updates the choice indices.
public
RemoveChoice(int)
void
Removes a choice at an index.
public
MoveChoiceUp(int)
void
Moves a choice up.
public
MoveChoiceDown(int)
void
Moves a choice down.
public
GetTimeoutChoice()
Choice?
Gets the timeout choice index based on the node properties.
public
IsComplete()
bool
Checks if the node is complete and ready for execution.
public
GetText(string)
string
Gets the choice text of a specific locale or the unlocalized text if localization is disabled.
public
ValidateLocalizedTexts(bool)
void
Validates the localized choice texts.
public
ContainsText(string)
bool
Checks if the node contains the specified text.
public
CreateCopy()
ChoiceNode
Creates a copy of this node.
public
InvokeEvent()
void
Invokes the choice node triggered event.
Last updated