Server/project/src/services/MatchLocationService.ts

25 lines
741 B
TypeScript
Raw Normal View History

import { SaveServer } from "@spt/servers/SaveServer";
import { TimeUtil } from "@spt/utils/TimeUtil";
import { inject, injectable } from "tsyringe";
2023-03-03 15:23:46 +00:00
@injectable()
export class MatchLocationService {
2023-03-03 15:23:46 +00:00
protected locations = {};
constructor(
@inject("TimeUtil") protected timeUtil: TimeUtil,
@inject("SaveServer") protected saveServer: SaveServer,
) {}
2023-03-03 15:23:46 +00:00
public deleteGroup(info: any): void {
for (const locationID in this.locations) {
for (const groupID in this.locations[locationID].groups) {
if (groupID === info.groupId) {
2023-03-03 15:23:46 +00:00
delete this.locations[locationID].groups[groupID];
return;
}
}
}
}
2023-11-15 20:35:05 -05:00
}