Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Behavior<T>

Interface used to define a behavior

Type parameters

  • T

Hierarchy

  • Behavior

Implemented by

Index

Properties

Methods

Properties

nameSearch playground for name

name: string

gets or sets behavior's name

Methods

attachSearch playground for attach

  • attach(target: T): void
  • Called when the behavior is attached to a target

    Parameters

    • target: T

      defines the target where the behavior is attached to

    Returns void

detachSearch playground for detach

  • detach(): void
  • Called when the behavior is detached from its target

    Returns void

initSearch playground for init

  • init(): void
  • Function called when the behavior needs to be initialized (after attaching it to a target)

    Returns void

Legend

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