mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
33 lines
887 B
TypeScript
33 lines
887 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
|
|
import { ICreateGroupRequestData } from "@spt-aki/models/eft/match/ICreateGroupRequestData";
|
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|
|
|
@injectable()
|
|
export class MatchLocationService
|
|
{
|
|
protected locations = {};
|
|
|
|
constructor(
|
|
@inject("TimeUtil") protected timeUtil: TimeUtil,
|
|
@inject("SaveServer") protected saveServer: SaveServer,
|
|
)
|
|
{}
|
|
|
|
public deleteGroup(info: any): void
|
|
{
|
|
for (const locationID in this.locations)
|
|
{
|
|
for (const groupID in this.locations[locationID].groups)
|
|
{
|
|
if (groupID === info.groupId)
|
|
{
|
|
delete this.locations[locationID].groups[groupID];
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|