21 lines
984 B
TypeScript
Raw Permalink Normal View History

2023-01-15 09:44:31 +11:00
import { OnLoad } from "../di/OnLoad";
import { OnUpdate } from "../di/OnUpdate";
import { ILogger } from "../models/spt/utils/ILogger";
import { LocalisationService } from "../services/LocalisationService";
2023-10-09 20:08:53 +11:00
import { EncodingUtil } from "./EncodingUtil";
2023-01-15 09:44:31 +11:00
import { TimeUtil } from "./TimeUtil";
export declare class App {
protected logger: ILogger;
protected timeUtil: TimeUtil;
protected localisationService: LocalisationService;
2023-10-09 20:08:53 +11:00
protected encodingUtil: EncodingUtil;
2023-01-15 09:44:31 +11:00
protected onLoadComponents: OnLoad[];
protected onUpdateComponents: OnUpdate[];
protected onUpdateLastRun: {};
2023-10-09 20:08:53 +11:00
protected os: any;
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, encodingUtil: EncodingUtil, onLoadComponents: OnLoad[], onUpdateComponents: OnUpdate[]);
2023-01-15 09:44:31 +11:00
load(): Promise<void>;
protected update(onUpdateComponents: OnUpdate[]): Promise<void>;
protected logUpdateException(err: any, updateable: OnUpdate): void;
}