mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
24 lines
544 B
TypeScript
24 lines
544 B
TypeScript
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();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|