2019-04-01 11:23:25 +02:00
|
|
|
/**
|
|
|
|
* TypeScript interface for the game engine (engine.js), which can't be converted
|
|
|
|
* to TypeScript at the moment
|
|
|
|
*/
|
|
|
|
export interface IEngine {
|
2021-09-10 22:57:05 +02:00
|
|
|
_lastUpdate: number;
|
2021-09-25 00:29:25 +02:00
|
|
|
updateGame: (numCycles?: number) => void;
|
|
|
|
Counters: {
|
|
|
|
[key: string]: number | undefined;
|
|
|
|
autoSaveCounter: number;
|
|
|
|
updateSkillLevelsCounter: number;
|
|
|
|
updateDisplays: number;
|
|
|
|
updateDisplaysLong: number;
|
|
|
|
updateActiveScriptsDisplay: number;
|
|
|
|
createProgramNotifications: number;
|
|
|
|
augmentationsNotifications: number;
|
|
|
|
checkFactionInvitations: number;
|
|
|
|
passiveFactionGrowth: number;
|
|
|
|
messages: number;
|
|
|
|
mechanicProcess: number;
|
|
|
|
contractGeneration: number;
|
2022-01-06 13:04:03 +01:00
|
|
|
achievementsCounter: number;
|
2021-09-25 00:29:25 +02:00
|
|
|
};
|
|
|
|
decrementAllCounters: (numCycles?: number) => void;
|
|
|
|
checkCounters: () => void;
|
|
|
|
load: (saveString: string) => void;
|
|
|
|
start: () => void;
|
2019-04-01 11:23:25 +02:00
|
|
|
}
|