FuncNode Class

Summary

A PlatformerGameKit.BehaviourTrees.LeafNode which invokes a System.Func`1.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.BehaviourTrees
Interfaces
Base Types
graph BT Type-->Base0["LeafNode"] click Base0 "/platformer/api/PlatformerGameKit.BehaviourTrees/LeafNode" Base0-->Base1["Object"] Type-.->Interface0["IBehaviourNode"] click Interface0 "/platformer/api/PlatformerGameKit.BehaviourTrees/IBehaviourNode" Type-.->Interface1["IPolymorphic"] Type["FuncNode"] class Type type-node

Syntax

public sealed class FuncNode : LeafNode, IBehaviourNode, IPolymorphic

Remarks

Documentation: Behaviour Tree Brains - Leaves

Constructors

Name Summary
FuncNode() Creates a new PlatformerGameKit.BehaviourTrees.FuncNode.
FuncNode(Func<Result>) Creates a new PlatformerGameKit.BehaviourTrees.FuncNode.

Properties

Name Value Summary
Func Func<Result>
The delegate which will be invoked by PlatformerGameKit.BehaviourTrees.FuncNode.Execute.

Methods

Name Value Summary
Execute() Result
Runs this node's main logic.