2023-03-03 15:23:46 +00:00
|
|
|
import { inject, injectable } from "tsyringe";
|
2023-10-19 17:21:17 +00:00
|
|
|
import { PresetController } from "@spt-aki/controllers/PresetController";
|
|
|
|
import { OnLoad } from "@spt-aki/di/OnLoad";
|
2023-03-03 15:23:46 +00:00
|
|
|
|
|
|
|
@injectable()
|
|
|
|
export class PresetCallbacks implements OnLoad
|
|
|
|
{
|
2023-11-13 12:31:52 -05:00
|
|
|
constructor(@inject("PresetController") protected presetController: PresetController)
|
2023-11-10 15:19:56 -05:00
|
|
|
{}
|
2023-03-03 15:23:46 +00:00
|
|
|
|
|
|
|
public async onLoad(): Promise<void>
|
|
|
|
{
|
|
|
|
this.presetController.initialize();
|
|
|
|
}
|
|
|
|
|
2023-11-10 15:19:56 -05:00
|
|
|
public getRoute(): string
|
2023-03-03 15:23:46 +00:00
|
|
|
{
|
|
|
|
return "aki-presets";
|
|
|
|
}
|
|
|
|
}
|