24 lines
544 B
TypeScript
Raw Normal View History

2023-11-20 18:25:50 +08:00
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();
}
}
}