IBehaviorAware<T>

Interface implemented by classes supporting behaviors

Type parameters

  • T

Hierarchy

  • IBehaviorAware

Implemented by

Index

Methods

addBehavior

Find examples in Playground
  • Attach a behavior

    Parameters

    • behavior: Behavior<T>

      defines the behavior to attach

    Returns T

    the current host

getBehaviorByName

Find examples in Playground
  • Gets a behavior using its name to search

    Parameters

    • name: string

      defines the name to search

    Returns Nullable<Behavior<T>>

    the behavior or null if not found

removeBehavior

Find examples in Playground
  • removeBehavior(behavior: Behavior<T>): T
  • Remove a behavior from the current object

    Parameters

    • behavior: Behavior<T>

      defines the behavior to detach

    Returns T

    the current host

Generated using TypeDoc