Class GraphNode
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
A node of an animation graph.
public abstract class GraphNodeInheritance
object ← GraphNode
Derived
Constructors
GraphNode(KVObject)
Reads the GraphNode from its KeyValues3 data.
protected GraphNode(KVObject data)Parameters
data KVObject
Properties
IsInitialized
Whether the node is active.
public bool IsInitialized { get; }Property Value
bool
NodeIdx
The index of the node in the graph.
public short NodeIdx { get; }Property Value
short
Methods
Initialize(GraphContext)
Activates the node, or adds a reference if it is already active.
public virtual void Initialize(GraphContext ctx)Parameters
ctx GraphContext
InitializeInternal(GraphContext)
Resets the node state when it becomes active.
protected virtual void InitializeInternal(GraphContext ctx)Parameters
ctx GraphContext
Instantiate(GraphContext)
Wires child node references and definition-derived state. Runs once for every node in array order at graph construction.
public abstract void Instantiate(GraphContext ctx)Parameters
ctx GraphContext
MarkNodeActive(GraphContext)
Marks this node as active/evaluated for the current graph update.
public void MarkNodeActive(GraphContext ctx)Parameters
ctx GraphContext
Shutdown(GraphContext)
Releases a reference, deactivating the node when none remain.
public void Shutdown(GraphContext ctx)Parameters
ctx GraphContext
ShutdownInternal(GraphContext)
Clears the node state when it becomes inactive.
protected virtual void ShutdownInternal(GraphContext ctx)Parameters
ctx GraphContext
WasUpdated(GraphContext)
True if this node has already been marked active during the current graph update.
public bool WasUpdated(GraphContext ctx)Parameters
ctx GraphContext
Returns
bool

