Server/project/src/services/MatchLocationService.ts

31 lines
793 B
TypeScript
Raw Normal View History

2023-03-03 15:23:46 +00:00
import { inject, injectable } from "tsyringe";
import { SaveServer } from "@spt-aki/servers/SaveServer";
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
2023-03-03 15:23:46 +00:00
@injectable()
export class MatchLocationService
{
protected locations = {};
constructor(
@inject("TimeUtil") protected timeUtil: TimeUtil,
@inject("SaveServer") protected saveServer: SaveServer,
)
2023-11-15 20:35:05 -05:00
{}
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)
{
delete this.locations[locationID].groups[groupID];
return;
}
}
}
}
2023-11-15 20:35:05 -05:00
}