myplugin.ts 414 B

1234567891011121314151617
  1. /**
  2. * 示例自定义插件,您可以查阅 http://developer.egret.com/cn/github/egret-docs/Engine2D/projectConfig/cmdExtensionPlugin/index.html
  3. * 了解如何开发一个自定义插件
  4. */
  5. export class CustomPlugin implements plugins.Command {
  6. constructor() {
  7. }
  8. async onFile(file: plugins.File) {
  9. return file;
  10. }
  11. async onFinish(commandContext: plugins.CommandContext) {
  12. }
  13. }