SDKBehaviorTypeBase

Ashley's avatar
Medal
Construct Team Founder
Published 15 May, 2018
134 words
<1 min

The SDKBehaviorTypeBase interface is used as the base class for runtime behavior types in the SDK. A behavior type corresponds to a behavior listed in the Behaviors dialog. Behavior types have multiple behavior instances, each associated with an object instance. It is the behavior equivalent of SDKTypeBase.

SDKBehaviorTypeBase cannot be directly constructed; it should only be used as a base class.

Properties

this._objectClass

Reference to the ObjectClass representing the object type that this behavior type belongs to.

this._behaviorType

Reference to the BehaviorType representing this behavior type in the runtime.

this._runtime

Reference to the associated Runtime that controls execution of the project.

this._behavior

Reference to your addon's SDK behavior class, which derives from SDKBehaviorBase.

Methods

GetObjectClass()

Returns this._objectClass publicly.

GetBehaviorType()

Returns this._behaviorType publicly.

GetRuntime()()

Returns this._runtime publicly.

GetBehavior()

Returns this._behavior publicly.