mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-07 01:01:09 +08:00
1. 编辑器扩展 - 自动生成框架模板功能
2. 编辑器扩展 - Tinypng 纹理压缩功能
This commit is contained in:
15
dist/template/ModuleModel.js
vendored
Normal file
15
dist/template/ModuleModel.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TemplateModel = void 0;
|
||||
exports.TemplateModel = `import { ecs } from "db://oops-framework/libs/ecs/ECS";
|
||||
|
||||
/** 数据层对象 */
|
||||
@ecs.register('<%Name%>')
|
||||
export class <%Name%>Comp extends ecs.Comp {
|
||||
id: number = -1;
|
||||
|
||||
/** 数据层组件移除时,重置所有数据为默认值 */
|
||||
reset() {
|
||||
this.id = -1;
|
||||
}
|
||||
}`;
|
||||
Reference in New Issue
Block a user