CWX-mods/Old/CWX_DebugTool/src/configHandler.ts

18 lines
330 B
TypeScript
Raw Normal View History

2022-08-20 13:36:46 +01:00
import { injectable } from "tsyringe";
import { ICwxConfig } from "../models/IConfig";
2022-08-20 13:36:46 +01:00
@injectable()
export class CwxConfigHandler
2022-08-20 13:36:46 +01:00
{
private config: ICwxConfig;
2022-08-20 13:36:46 +01:00
constructor()
{
this.config = require("../config/config.json");
}
public getConfig(): ICwxConfig
2022-08-20 13:36:46 +01:00
{
return this.config;
}
}