mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-22 17:06:53 +08:00
1. 编辑器扩展 - 自动生成框架模板功能
2. 编辑器扩展 - Tinypng 纹理压缩功能
This commit is contained in:
22
dist/template/Module.js
vendored
Normal file
22
dist/template/Module.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TemplateModule = void 0;
|
||||
exports.TemplateModule = `import { ecs } from "db://oops-framework/libs/ecs/ECS";
|
||||
|
||||
/** <%Name%> 模块 */
|
||||
@ecs.register('<%Name%>')
|
||||
export class <%Name%> extends ecs.Entity {
|
||||
/** ---------- 数据层 ---------- */
|
||||
// <%Name%>Model!: <%Name%>ModelComp;
|
||||
|
||||
/** ---------- 业务层 ---------- */
|
||||
// <%Name%>Bll!: <%Name%>BllComp;
|
||||
|
||||
/** ---------- 视图层 ---------- */
|
||||
// <%Name%>View!: <%Name%>ViewComp;
|
||||
|
||||
/** 初始添加的数据层组件 */
|
||||
protected init() {
|
||||
// this.addComponents<ecs.Comp>();
|
||||
}
|
||||
}`;
|
||||
Reference in New Issue
Block a user