@zxh19890103/wik
Version:
The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.
14 lines (13 loc) • 444 B
TypeScript
import { IBehavior, IMode, IModeManager } from '../../interfaces';
export declare class Mode implements IMode {
readonly name: string;
readonly modeMgr: IModeManager;
behaviors: IBehavior[];
constructor(name: string, ...behaviors: IBehavior[]);
onLoad(): void;
onUnload(): void;
add(b: IBehavior, ...bs: IBehavior[]): void;
remove(b: IBehavior, ...bs: IBehavior[]): void;
load(): void;
unload(): void;
}