Server/project/src/servers/DatabaseServer.ts
2023-11-15 21:12:40 -05:00

32 lines
709 B
TypeScript

import { injectable } from "tsyringe";
import { IDatabaseTables } from "@spt-aki/models/spt/server/IDatabaseTables";
@injectable()
export class DatabaseServer
{
protected tableData: IDatabaseTables = {
bots: undefined,
hideout: undefined,
locales: undefined,
locations: undefined,
loot: undefined,
match: undefined,
templates: undefined,
traders: undefined,
globals: undefined,
server: undefined,
settings: undefined,
};
public getTables(): IDatabaseTables
{
return this.tableData;
}
public setTables(tableData: IDatabaseTables): void
{
this.tableData = tableData;
}
}