Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface used to define a behavior

Type Parameters

  • T

Hierarchy

  • Behavior

Implemented by

Index

Properties

Methods

Properties

name: string

gets or sets behavior's name

Methods

  • 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

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

    Returns void

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

    Returns void

Legend

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

Settings

Theme