Endstar LUA API Documentation
Loading...
Searching...
No Matches
InstructionNode Class Reference

Base class for behavior, command, and interaction nodes. More...

Public Member Functions

Context GetContext ()
 Gets the context of this instruction node.
 
void SetContextBehavior (bool useContext)
 
Context GetNpcReference ()
 Gets the context of the referenced npc.
 
float GetTime ()
 Gets the current local game time.
 
virtual void GiveInstruction (Context _, Context context)
 Give the nodes instruction to the Npc.
 
virtual void RescindInstruction (Context _, Context context)
 Rescind the nodes instruction from the Npc.
 

Properties

Endless.Gameplay.Scripting.InstructionNode ManagedNode [get]
 

Detailed Description

Base class for behavior, command, and interaction nodes.

Member Function Documentation

◆ GetContext()

Context GetContext ( )

Gets the context of this instruction node.

Returns
The context of the instruction node.

◆ GetNpcReference()

Context GetNpcReference ( )

Gets the context of the referenced npc.

Returns
The context of the referenced npc.

◆ GetTime()

float GetTime ( )

Gets the current local game time.

Returns
The current local game time.

◆ GiveInstruction()

virtual void GiveInstruction ( Context _,
Context context )
virtual

Give the nodes instruction to the Npc.

Parameters
_The instigator of the action. This is ignored in this case.
contextThe npc to give the instruction to.

Reimplemented in Interaction.

◆ RescindInstruction()

virtual void RescindInstruction ( Context _,
Context context )
virtual

Rescind the nodes instruction from the Npc.

Parameters
_The instigator of the action. This is ignored in this case.
contextThe npc to rescind the instruction to.

Reimplemented in Interaction.

◆ SetContextBehavior()

void SetContextBehavior ( bool useContext)

Property Documentation

◆ ManagedNode

Endless.Gameplay.Scripting.InstructionNode ManagedNode
getprotected