Calculator

Class in Arbor / Inherits from: NodeBehaviour

Description

Class that defines the behavior of the State. Inherited and to use.

Remarks

Available Attributes :

Fields

Field Name Description
recalculateMode Recalculate mode

Properties

Property Name Description
calculatorID Gets the Calculator identifier.
calculatorNode Get the CalculatorNode.
isDirty Whether it has been changed.

Methods

Method Name Description
Calculate It is calculated, if necessary.
OnCalculate It called when it is calculated .
OnCheckDirty It is called when judging whether it has been changed.
OnCreated Raises the created event.
OnRebuildFields It is called when reconstructing data about fields.
RebuildChangeableFields Rebuild fields to watch for changes.
Call this when you change the instance of ParameterReference or FlexiblePrimitiveBase directly from script during play.Also NodeBehaviour.RebuildFields() does the same.
SetDirty Call if you want call OnCalculate.

Inherited Members

Fields

Field Name Description
expanded Expanded on ArborEditorWindow.

Properties

Property Name Description
calculatorSlotFieldCount Number of DataSlotField
dataSlotCount Number of DataSlot
dataSlotFieldCount Number of DataSlotField
node Get the Node.
nodeGraph Gets the NodeGraph.
nodeID Gets the node identifier.

Events

Event Name Description
onValidate Callback called during OnValidate

Methods

Method Name Description
ContainsSlot Determine if the Data Slot is included.
GetCalculatorSlotField Get DataSlotField.
GetDataSlot Get DataSlot.
GetDataSlotField Get DataSlotField.
Initialize For Editor.
OnGraphPause This function is called when the graph is paused.
OnGraphResume This function is called when the graph resumes.
OnGraphStop This function is called when the graph stops.
OnInitializeEnabled Called to perform enabled initialization.
OnPreDestroy Raises the pre destroy event.
RebuildCalculatorSlotFields Rebuild the DataSlotField.
RebuildDataSlotFieldIfNecessary Check if DataSlot exists and rebuild if necessary.
RebuildDataSlotFields Rebuild the DataSlotField.
RebuildFields For internal.
UpdateDataLink Manually update DataLink values.Update the value of DataLink field of DataLinkUpdateTiming.Manual.

Static Methods

Method Name Description
CreateNodeBehaviour For Editor.
Destroy Destroy NodeBehaviour.