Add ns.ui.getGameInfo() to retrieve game version

Returns { version, commit, platform }
This commit is contained in:
Martin Fournier
2022-01-16 10:41:02 -05:00
parent 8b69fd7faa
commit 07403eaaaa
3 changed files with 34 additions and 1 deletions

View File

@@ -4065,6 +4065,13 @@ interface UserInterface {
* RAM cost: cost: 0 GB
*/
resetStyles(): void;
/**
* Gets the current game information (version, commit, ...)
* @remarks
* RAM cost: 0 GB
*/
getGameInfo(): GameInfo;
}
/**
@@ -6573,3 +6580,13 @@ interface IStyleSettings {
fontFamily: string;
lineHeight: number;
}
/**
* Game Information
* @internal
*/
interface GameInfo {
version: string;
commit: string;
platform: string;
}