Interface ICommand

interface ICommand {
    app: App;
    autoExecute?: boolean;
    callbacks?: ICommandCallback;
    owerScene?: Scene;
    execute(): void;
    redo(): void;
    undo(): void;
}

Implemented by

Properties

app: App
autoExecute?: boolean

是否自动执行。默认是

callbacks?: ICommandCallback
owerScene?: Scene

命令所在的场景

Methods

  • Returns void

  • Returns void

  • Returns void