Arbor 3: FSM & BT Graph Editor  3.1.1
NodeBehaviour Class Reference

Base class for scripts to be assigned to various nodes of ArborFSM. More...

Inheritance diagram for NodeBehaviour:
TreeNodeBehaviour Calculator StateBehaviour ActionBehaviour CompositeBehaviour Decorator Service

Public Member Functions

CalculatorSlotField GetCalculatorSlotField (int index)
 Get CalculatorSlotField. More...
 
CalculatorSlotField GetCalculatorSlotField (CalculatorSlot slot)
 Get CalculatorSlotField. More...
 
void RebuildCalculatorSlotFields ()
 Rebuild the CalculatorSlotField. More...
 
void Initialize (NodeGraph nodeGraph, int nodeID)
 For Editor. More...
 

Static Public Member Functions

static NodeBehaviour CreateNodeBehaviour (Node node, System.Type type, bool duplicate=false)
 For Editor. More...
 
static Type CreateNodeBehaviour< Type > (Node node, bool duplicate=false)
 For Editor. More...
 
static void Destroy (NodeBehaviour behaviour)
 Destroy NodeBehaviour. More...
 

Protected Member Functions

virtual void OnValidate ()
 See MonoBehaviour.OnValidate. More...
 
virtual void OnCreated ()
 Raises the created event. More...
 
virtual void OnInitializeEnabled ()
 Called to perform enabled initialization. More...
 
virtual void OnPreDestroy ()
 Raises the pre destroy event. More...
 
virtual void OnGraphPause ()
 This function is called when the graph is paused. More...
 
virtual void OnGraphResume ()
 This function is called when the graph resumes. More...
 
virtual void OnGraphStop ()
 This function is called when the graph stops. More...
 

Properties

NodeGraph nodeGraph [get]
 Gets the NodeGraph. More...
 
int nodeID [get]
 Gets the node identifier. More...
 
Node node [get]
 Get the Node. More...
 
int calculatorSlotFieldCount [get]
 Number of CalculatorSlotField More...
 

Detailed Description

Base class for scripts to be assigned to various nodes of ArborFSM.

Member Function Documentation

static NodeBehaviour CreateNodeBehaviour ( Node  node,
System.Type  type,
bool  duplicate = false 
)
static

For Editor.

static Type CreateNodeBehaviour< Type > ( Node  node,
bool  duplicate = false 
)
static

For Editor.

Type Constraints
Type :NodeBehaviour 
static void Destroy ( NodeBehaviour  behaviour)
static

Destroy NodeBehaviour.

Parameters
behaviourNodeBehaviour
CalculatorSlotField GetCalculatorSlotField ( int  index)

Get CalculatorSlotField.

Parameters
indexIndex
Returns
CalculatorSlotField
CalculatorSlotField GetCalculatorSlotField ( CalculatorSlot  slot)
void Initialize ( NodeGraph  nodeGraph,
int  nodeID 
)

For Editor.

Parameters
nodeGraphNodeGraph
nodeIDNode ID
virtual void OnCreated ( )
protectedvirtual

Raises the created event.

virtual void OnGraphPause ( )
protectedvirtual

This function is called when the graph is paused.

virtual void OnGraphResume ( )
protectedvirtual

This function is called when the graph resumes.

virtual void OnGraphStop ( )
protectedvirtual

This function is called when the graph stops.

virtual void OnInitializeEnabled ( )
protectedvirtual

Called to perform enabled initialization.

Reimplemented in StateBehaviour, and TreeNodeBehaviour.

virtual void OnPreDestroy ( )
protectedvirtual

Raises the pre destroy event.

virtual void OnValidate ( )
protectedvirtual

See MonoBehaviour.OnValidate.

Reimplemented in Calculator.

void RebuildCalculatorSlotFields ( )

Rebuild the CalculatorSlotField.

It is necessary to call it when changing the number of fields of CalculatorSlot at runtime.

Property Documentation

int calculatorSlotFieldCount
get
Node node
get

Get the Node.

NodeGraph nodeGraph
get

Gets the NodeGraph.

int nodeID
get

Gets the node identifier.