18 lines
844 B
TypeScript
Raw Normal View History

2022-07-09 16:03:26 -04:00
import { OnLoad } from "../di/OnLoad";
import { OnUpdate } from "../di/OnUpdate";
import { ILogger } from "../models/spt/utils/ILogger";
2022-11-20 14:59:15 -05:00
import { LocalisationService } from "../services/LocalisationService";
import { TimeUtil } from "./TimeUtil";
2022-07-09 16:03:26 -04:00
export declare class App {
protected logger: ILogger;
protected timeUtil: TimeUtil;
2022-11-20 14:59:15 -05:00
protected localisationService: LocalisationService;
2022-07-09 16:03:26 -04:00
protected onLoadComponents: OnLoad[];
protected onUpdateComponents: OnUpdate[];
protected onUpdateLastRun: {};
2022-11-20 14:59:15 -05:00
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, onLoadComponents: OnLoad[], onUpdateComponents: OnUpdate[]);
2023-05-18 15:57:25 -04:00
load(): Promise<void>;
protected update(onUpdateComponents: OnUpdate[]): Promise<void>;
2022-10-06 23:29:01 -04:00
protected logUpdateException(err: any, updateable: OnUpdate): void;
2022-07-09 16:03:26 -04:00
}