Behavior<T>

Interface used to define a behavior

Type parameters

  • T

Hierarchy

  • Behavior

Implemented by

Index

Properties

Methods

Properties

name

name: string

gets or sets behavior's name

Methods

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

detach

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

    Returns void

init

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

    Returns void

Generated using TypeDoc