Server/project/src/servers/DatabaseServer.ts

30 lines
679 B
TypeScript
Raw Normal View History

2023-03-03 15:23:46 +00:00
import { injectable } from "tsyringe";
import { IDatabaseTables } from "@spt/models/spt/server/IDatabaseTables";
2023-03-03 15:23:46 +00:00
@injectable()
export class DatabaseServer
{
protected tableData: IDatabaseTables = {
bots: undefined,
hideout: undefined,
locales: undefined,
locations: undefined,
match: undefined,
templates: undefined,
traders: undefined,
globals: undefined,
server: undefined,
2023-11-15 20:35:05 -05:00
settings: undefined,
2023-03-03 15:23:46 +00:00
};
public getTables(): IDatabaseTables
{
return this.tableData;
}
public setTables(tableData: IDatabaseTables): void
{
this.tableData = tableData;
}
}