mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +00:00
简单PVP
This commit is contained in:
23
JisolGameCocos/assets/script/AppAction.ts
Normal file
23
JisolGameCocos/assets/script/AppAction.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import SystemBase from "../../extensions/ngame/assets/ngame/system/SystemBase";
|
||||
import BaseAction from "./action/BaseAction";
|
||||
import PVPAction from "./action/PVPAction";
|
||||
|
||||
export default class AppAction extends SystemBase{
|
||||
|
||||
loadings:BaseAction[] = [
|
||||
PVPAction.getIns(), //PVP Action
|
||||
];
|
||||
|
||||
async onInit(): Promise<any> {
|
||||
|
||||
//初始化所有数据类
|
||||
for (let index = 0; index < this.loadings.length; index++) {
|
||||
const data = this.loadings[index];
|
||||
await data.onInit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user