API

Interface Behavior<T>

Interface used to define a behavior

interface Behavior<T> {
    attachedNode: Nullable<T>;
    name: string;
    attach(target: T): void;
    detach(): void;
    init(): void;
}

Type Parameters

  • T

Implemented by

Index
attachedNode: Nullable<T>

Gets the current attached target

name: string

gets or sets behavior's name