Server/project/src/servers/DatabaseServer.ts

27 lines
671 B
TypeScript
Raw Normal View History

import { IDatabaseTables } from "@spt/models/spt/server/IDatabaseTables";
import { injectable } from "tsyringe";
2023-03-03 15:23:46 +00:00
@injectable()
export class DatabaseServer {
2023-03-03 15:23:46 +00:00
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 {
2023-03-03 15:23:46 +00:00
return this.tableData;
}
public setTables(tableData: IDatabaseTables): void {
2023-03-03 15:23:46 +00:00
this.tableData = tableData;
}
}