diff --git a/markdown/bitburner.gameinfo.commit.md b/markdown/bitburner.gameinfo.commit.md index 4a93173b1..1e9d055f2 100644 --- a/markdown/bitburner.gameinfo.commit.md +++ b/markdown/bitburner.gameinfo.commit.md @@ -4,6 +4,8 @@ ## GameInfo.commit property +Git commit hash that the release was built from. E.g.: "d0d776700" + **Signature:** ```typescript diff --git a/markdown/bitburner.gameinfo.md b/markdown/bitburner.gameinfo.md index 7d258f240..144f5822b 100644 --- a/markdown/bitburner.gameinfo.md +++ b/markdown/bitburner.gameinfo.md @@ -16,7 +16,8 @@ interface GameInfo | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [commit](./bitburner.gameinfo.commit.md) | | string | | -| [platform](./bitburner.gameinfo.platform.md) | | string | | -| [version](./bitburner.gameinfo.version.md) | | string | | +| [commit](./bitburner.gameinfo.commit.md) | | string | Git commit hash that the release was built from. E.g.: "d0d776700" | +| [platform](./bitburner.gameinfo.platform.md) | | "Browser" \| "Steam" | Platform that the game is running on | +| [version](./bitburner.gameinfo.version.md) | | string |
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".
| +| [versionNumber](./bitburner.gameinfo.versionnumber.md) | | number | Internal version number that increments during releases. E.g.: 43 | diff --git a/markdown/bitburner.gameinfo.platform.md b/markdown/bitburner.gameinfo.platform.md index 30ecc116a..b625f1f6d 100644 --- a/markdown/bitburner.gameinfo.platform.md +++ b/markdown/bitburner.gameinfo.platform.md @@ -4,8 +4,10 @@ ## GameInfo.platform property +Platform that the game is running on + **Signature:** ```typescript -platform: string; +platform: "Browser" | "Steam"; ``` diff --git a/markdown/bitburner.gameinfo.version.md b/markdown/bitburner.gameinfo.version.md index b83c1fe87..eb967b2b1 100644 --- a/markdown/bitburner.gameinfo.version.md +++ b/markdown/bitburner.gameinfo.version.md @@ -4,6 +4,10 @@ ## GameInfo.version property +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". + **Signature:** ```typescript diff --git a/markdown/bitburner.gameinfo.versionnumber.md b/markdown/bitburner.gameinfo.versionnumber.md new file mode 100644 index 000000000..c4f6306f5 --- /dev/null +++ b/markdown/bitburner.gameinfo.versionnumber.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [GameInfo](./bitburner.gameinfo.md) > [versionNumber](./bitburner.gameinfo.versionnumber.md) + +## GameInfo.versionNumber property + +Internal version number that increments during releases. E.g.: 43 + +**Signature:** + +```typescript +versionNumber: number; +``` diff --git a/src/NetscriptFunctions/UserInterface.ts b/src/NetscriptFunctions/UserInterface.ts index 5cb96d752..cbcb77064 100644 --- a/src/NetscriptFunctions/UserInterface.ts +++ b/src/NetscriptFunctions/UserInterface.ts @@ -159,17 +159,12 @@ export function NetscriptUserInterface(): InternalAPI