MISC: Add versionNumber to ns.ui.getGameInfo() (#2155)

This commit is contained in:
catloversg
2025-05-26 06:56:22 +07:00
committed by GitHub
parent bf7101c1b0
commit e31b174137
7 changed files with 41 additions and 15 deletions

View File

@@ -10104,9 +10104,18 @@ interface IStyleSettings {
* @public
*/
interface GameInfo {
/**
* Version as shown in release notes and in the UI. E.g.: "2.8.1"
*
* Note that this property does not have the prefix "v". For example, with v2.8.1, this property is "2.8.1".
*/
version: string;
/** Internal version number that increments during releases. E.g.: 43 */
versionNumber: number;
/** Git commit hash that the release was built from. E.g.: "d0d776700" */
commit: string;
platform: string;
/** Platform that the game is running on */
platform: "Browser" | "Steam";
}
/**