2024-05-21 19:59:04 +02:00
|
|
|
import { HandbookController } from "@spt/controllers/HandbookController";
|
|
|
|
import { OnLoad } from "@spt/di/OnLoad";
|
2024-07-23 17:12:53 +02:00
|
|
|
import { inject, injectable } from "tsyringe";
|
2023-03-03 16:23:46 +01:00
|
|
|
|
|
|
|
@injectable()
|
2024-07-23 17:12:53 +02:00
|
|
|
export class HandbookCallbacks implements OnLoad {
|
|
|
|
constructor(@inject("HandbookController") protected handbookController: HandbookController) {}
|
2023-11-10 21:19:56 +01:00
|
|
|
|
2024-07-23 17:12:53 +02:00
|
|
|
public async onLoad(): Promise<void> {
|
2023-03-03 16:23:46 +01:00
|
|
|
this.handbookController.load();
|
|
|
|
}
|
2023-11-10 21:19:56 +01:00
|
|
|
|
2024-07-23 17:12:53 +02:00
|
|
|
public getRoute(): string {
|
2024-05-21 19:59:04 +02:00
|
|
|
return "spt-handbook";
|
2023-03-03 16:23:46 +01:00
|
|
|
}
|
2023-11-10 21:19:56 +01:00
|
|
|
}
|