mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-08 03:16:49 +08:00
修改代码模板,兼容新版框架
This commit is contained in:
5
dist/template/Module.js
vendored
5
dist/template/Module.js
vendored
@@ -2,10 +2,11 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TemplateModule = void 0;
|
||||
exports.TemplateModule = `import { ecs } from "db://oops-framework/libs/ecs/ECS";
|
||||
import { CCEntity } from 'db://oops-framework/module/common/CCEntity';
|
||||
|
||||
/** <%Name%> 模块 */
|
||||
@ecs.register('<%Name%>')
|
||||
export class <%Name%> extends ecs.Entity {
|
||||
export class <%Name%> extends CCEntity {
|
||||
/** ---------- 数据层 ---------- */
|
||||
// <%Name%>Model!: <%Name%>ModelComp;
|
||||
|
||||
@@ -17,6 +18,6 @@ export class <%Name%> extends ecs.Entity {
|
||||
|
||||
/** 初始添加的数据层组件 */
|
||||
protected init() {
|
||||
// this.addComponents<ecs.Comp>();
|
||||
// this.addComponents();
|
||||
}
|
||||
}`;
|
||||
|
||||
Reference in New Issue
Block a user