feat(gvg): 开始备战期时激战期内存清理

This commit is contained in:
luying
2023-02-17 14:35:34 +08:00
parent 6db6ffa536
commit 4a3efd312d
3 changed files with 14 additions and 0 deletions

View File

@@ -182,4 +182,8 @@ export async function initTeamToMem() {
teamObj.enterCity(team);
}
}
}
export function clearBattleMemory() {
gvgBattleMap.clear();
}

View File

@@ -149,6 +149,7 @@ export async function initLeaguePrepare() {
for(let { leagueCode, memberCnt } of leagues) {
await GVGLeaguePrepareModel.initData(config.configId, leagueCode, memberCnt);
}
pinus.app.rpc.guild?.guildRemote?.clearBattleMemory.broadcast();
}
export async function setGVGServerGroup() {