Skip to content

Commit

Permalink
添加静态视图模块、bundle管理器脚本模板 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
1226085293 authored Aug 1, 2024
1 parent caffb51 commit be1dcf1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .creator/asset-template/typescript/bundle管理器.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { _decorator } from "cc";
import mk from "mk";
import cc from "cc";
const { ccclass, property } = _decorator;

class <%UnderscoreCaseClassName%> extends mk.bundle_.bundle_manage_base {
name_s = "这里填写 bundle 名";
}

export default new <%UnderscoreCaseClassName%>();
1 change: 1 addition & 0 deletions .creator/asset-template/typescript/视图模块.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { _decorator } from "cc";
import mk from "mk";
import cc from "cc";
const { ccclass, property } = _decorator;

@ccclass("<%UnderscoreCaseClassName%>")
Expand Down
16 changes: 16 additions & 0 deletions .creator/asset-template/typescript/静态视图模块.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { _decorator } from "cc";
import mk from "mk";
import cc from "cc";
const { ccclass, property } = _decorator;

@ccclass("<%UnderscoreCaseClassName%>")
export class <%UnderscoreCaseClassName%> extends mk.static_view_base {
// 初始化视图
// create(): void {}
// 有数据初始化
// init(init_?: typeof this.init_data): void {}
// 无数据初始化
// open(): void {}
// 模块关闭
// close(): void {}
}

0 comments on commit be1dcf1

Please sign in to comment.