Merge pull request #2665 from MartinFournier/feature/ns-ui-getgameinfo

Add ns.ui.getGameInfo() to retrieve game version
This commit is contained in:
hydroflame
2022-01-17 15:53:43 -05:00
committed by GitHub
3 changed files with 34 additions and 1 deletions

View File

@@ -4065,6 +4065,13 @@ interface UserInterface {
* RAM 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;
}