BBParam

Inherits:

Inherited By:BBAabb,BBArray,BBBasis,BBBool,BBByteArray,BBColor,BBColorArray,BBDictionary,BBFloat,BBFloat32Array,BBFloat64Array,BBInt,BBInt32Array,BBInt64Array,BBNode,BBPlane,BBProjection,BBQuaternion,BBRect2,BBRect2i,BBString,BBStringArray,BBStringName,BBTransform2D,BBTransform3D,BBVariant,BBVector2,BBVector2Array,BBVector2i,BBVector3,BBVector3Array,BBVector3i,BBVector4,BBVector4i

A base class for LimboAI typed parameters.

Description

A base class for LimboAI typed parameters, with the ability to reference aBlackboard variable or hold a raw value of a specificVariant.Type.

Note: Don’t instantiate. Use specific subtypes instead.

Properties

Variant

saved_value

null

ValueSource

value_source

0

StringName

variable

Methods

Variant.Type

get_type()const

Variant

get_value(scene_root:Node, blackboard:Blackboard, default:Variant = null)


Enumerations

enumValueSource:🔗

ValueSourceSAVED_VALUE =0

The value is stored directly within the BBParam resource.

ValueSourceBLACKBOARD_VAR =1

The value is referenced by a variable name and retrieved from theBlackboard. The variable name is stored within the BBParam resource.


Property Descriptions

Variantsaved_value =null🔗

Stores the parameter value whenvalue_source is set toSAVED_VALUE. The data type of the value is determined byget_type.


ValueSourcevalue_source =0🔗

Specifies the source of the value for BBParam. SeeValueSource.


StringNamevariable🔗

Stores the name of aBlackboard variable whenvalue_source is set toBLACKBOARD_VAR.


Method Descriptions

Variant.Typeget_type()const🔗

Returns the expected data type of the parameter.


Variantget_value(scene_root:Node, blackboard:Blackboard, default:Variant = null)🔗

Returns the value of the parameter.