Server/project/src/servers/DatabaseServer.ts

31 lines
701 B
TypeScript
Raw Normal View History

2023-03-03 15:23:46 +00:00
import { injectable } from "tsyringe";
import { IDatabaseTables } from "../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;
}
}