Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IBehaviorAware<T>

Interface implemented by classes supporting behaviors

Type parameters

  • T

Hierarchy

  • IBehaviorAware

Implemented by

Index

Methods

addBehaviorSearch playground for addBehavior

  • Attach a behavior

    Parameters

    • behavior: Behavior<T>

      defines the behavior to attach

    Returns T

    the current host

getBehaviorByNameSearch playground for getBehaviorByName

  • 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

removeBehaviorSearch playground for removeBehavior

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method