This commit is contained in:
xy
2026-03-13 01:38:40 +00:00
parent e6e4f88257
commit 28855885cd
311 changed files with 89544 additions and 94350 deletions
@@ -1,21 +1,21 @@
import { pinus } from "pinus";
import { GVGBattleData } from "../gvg/gvgBattleMemory";
// 积分点占领情况,groupId_serverType_cityId -> GVGBattleData
const gvgBattleMap: Map<string, GVGBattleData> = new Map();
export function getGVGBattleData(groupKey: string) {
if(!gvgBattleMap.has(groupKey)) {
gvgBattleMap.set(groupKey, new GVGBattleData(groupKey));
pinus.app.set('gvgBattleMap', gvgBattleMap);
}
return gvgBattleMap.get(groupKey);
}
export function getGVGBattleMap() {
return gvgBattleMap;
}
export function clearBattleMemory() {
gvgBattleMap.clear();
}
import { pinus } from "pinus";
import { GVGBattleData } from "../gvg/gvgBattleMemory";
// 积分点占领情况,groupId_serverType_cityId -> GVGBattleData
const gvgBattleMap: Map<string, GVGBattleData> = new Map();
export function getGVGBattleData(groupKey: string) {
if(!gvgBattleMap.has(groupKey)) {
gvgBattleMap.set(groupKey, new GVGBattleData(groupKey));
pinus.app.set('gvgBattleMap', gvgBattleMap);
}
return gvgBattleMap.get(groupKey);
}
export function getGVGBattleMap() {
return gvgBattleMap;
}
export function clearBattleMemory() {
gvgBattleMap.clear();
}