mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
doc n steam copypaste
This commit is contained in:
parent
ffd1bd3ab0
commit
773f50ba67
24
dist/bitburner.d.ts
vendored
24
dist/bitburner.d.ts
vendored
@ -1032,7 +1032,7 @@ export declare interface Gang {
|
|||||||
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
||||||
* This includes Augmentations.
|
* This includes Augmentations.
|
||||||
*
|
*
|
||||||
* @returns Names of all Equpiment/Augmentations.
|
* @returns Names of all Equipments/Augmentations.
|
||||||
*/
|
*/
|
||||||
getEquipmentNames(): string[];
|
getEquipmentNames(): string[];
|
||||||
|
|
||||||
@ -3313,6 +3313,17 @@ export declare interface NS extends Singularity {
|
|||||||
*/
|
*/
|
||||||
getBitNodeMultipliers(): BitNodeMultipliers;
|
getBitNodeMultipliers(): BitNodeMultipliers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of acquired Source-Files.
|
||||||
|
* @remarks
|
||||||
|
* RAM cost: 5 GB
|
||||||
|
*
|
||||||
|
* Returns an array of source files
|
||||||
|
*
|
||||||
|
* @returns Array containing an object with number and level of the source file.
|
||||||
|
*/
|
||||||
|
getOwnedSourceFiles(): SourceFileLvl[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get information about the player.
|
* Get information about the player.
|
||||||
* @returns Player info
|
* @returns Player info
|
||||||
@ -4080,17 +4091,6 @@ export declare interface Singularity {
|
|||||||
*/
|
*/
|
||||||
getOwnedAugmentations(purchased?: boolean): string[];
|
getOwnedAugmentations(purchased?: boolean): string[];
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a list of acquired Source-Files.
|
|
||||||
* @remarks
|
|
||||||
* RAM cost: 5 GB
|
|
||||||
*
|
|
||||||
* Returns an array of source files
|
|
||||||
*
|
|
||||||
* @returns Array containing an object with number and level of the source file.
|
|
||||||
*/
|
|
||||||
getOwnedSourceFiles(): SourceFileLvl[];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of augmentation available from a faction.
|
* Get a list of augmentation available from a faction.
|
||||||
* @remarks
|
* @remarks
|
||||||
|
@ -9,7 +9,6 @@ if (greenworks.init()) {
|
|||||||
|
|
||||||
const debug = false;
|
const debug = false;
|
||||||
|
|
||||||
Menu.setApplicationMenu(false);
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
@ -41,6 +40,24 @@ function createWindow() {
|
|||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Create the Application's main menu
|
||||||
|
Menu.setApplicationMenu(
|
||||||
|
Menu.buildFromTemplate([
|
||||||
|
{
|
||||||
|
label: "Edit",
|
||||||
|
submenu: [
|
||||||
|
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
|
||||||
|
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
|
||||||
|
{ type: "separator" },
|
||||||
|
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
|
||||||
|
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
|
||||||
|
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
|
||||||
|
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
// This is backward but the game fills in an array called `document.achievements` and we retrieve it from
|
// This is backward but the game fills in an array called `document.achievements` and we retrieve it from
|
||||||
// here. Hey if it works it works.
|
// here. Hey if it works it works.
|
||||||
const achievements = greenworks.getAchievementNames();
|
const achievements = greenworks.getAchievementNames();
|
||||||
|
@ -6088,7 +6088,7 @@
|
|||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!Gang#getEquipmentNames:member(1)",
|
"canonicalReference": "bitburner!Gang#getEquipmentNames:member(1)",
|
||||||
"docComment": "/**\n * List equipment names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members. This includes Augmentations.\n *\n * @returns Names of all Equpiment/Augmentations.\n */\n",
|
"docComment": "/**\n * List equipment names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members. This includes Augmentations.\n *\n * @returns Names of all Equipments/Augmentations.\n */\n",
|
||||||
"excerptTokens": [
|
"excerptTokens": [
|
||||||
{
|
{
|
||||||
"kind": "Content",
|
"kind": "Content",
|
||||||
@ -12675,6 +12675,39 @@
|
|||||||
"parameters": [],
|
"parameters": [],
|
||||||
"name": "getHostname"
|
"name": "getHostname"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "MethodSignature",
|
||||||
|
"canonicalReference": "bitburner!NS#getOwnedSourceFiles:member(1)",
|
||||||
|
"docComment": "/**\n * Get a list of acquired Source-Files.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n",
|
||||||
|
"excerptTokens": [
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": "getOwnedSourceFiles(): "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Reference",
|
||||||
|
"text": "SourceFileLvl",
|
||||||
|
"canonicalReference": "bitburner!SourceFileLvl:interface"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": "[]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": ";"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isOptional": false,
|
||||||
|
"returnTypeTokenRange": {
|
||||||
|
"startIndex": 1,
|
||||||
|
"endIndex": 3
|
||||||
|
},
|
||||||
|
"releaseTag": "Public",
|
||||||
|
"overloadIndex": 1,
|
||||||
|
"parameters": [],
|
||||||
|
"name": "getOwnedSourceFiles"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!NS#getPlayer:member(1)",
|
"canonicalReference": "bitburner!NS#getPlayer:member(1)",
|
||||||
@ -20953,39 +20986,6 @@
|
|||||||
],
|
],
|
||||||
"name": "getOwnedAugmentations"
|
"name": "getOwnedAugmentations"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kind": "MethodSignature",
|
|
||||||
"canonicalReference": "bitburner!Singularity#getOwnedSourceFiles:member(1)",
|
|
||||||
"docComment": "/**\n * Get a list of acquired Source-Files.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Singularity - Level 3\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n",
|
|
||||||
"excerptTokens": [
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": "getOwnedSourceFiles(): "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Reference",
|
|
||||||
"text": "SourceFileLvl",
|
|
||||||
"canonicalReference": "bitburner!SourceFileLvl:interface"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": "[]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": ";"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"isOptional": false,
|
|
||||||
"returnTypeTokenRange": {
|
|
||||||
"startIndex": 1,
|
|
||||||
"endIndex": 3
|
|
||||||
},
|
|
||||||
"releaseTag": "Public",
|
|
||||||
"overloadIndex": 1,
|
|
||||||
"parameters": [],
|
|
||||||
"name": "getOwnedSourceFiles"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!Singularity#getStats:member(1)",
|
"canonicalReference": "bitburner!Singularity#getStats:member(1)",
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ getEquipmentNames(): string[];
|
|||||||
|
|
||||||
string\[\]
|
string\[\]
|
||||||
|
|
||||||
Names of all Equpiment/Augmentations.
|
Names of all Equipments/Augmentations.
|
||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
|
||||||
|
6
markdown/bitburner.singularity.getownedsourcefiles.md → markdown/bitburner.ns.getownedsourcefiles.md
6
markdown/bitburner.singularity.getownedsourcefiles.md → markdown/bitburner.ns.getownedsourcefiles.md
@ -1,8 +1,8 @@
|
|||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getOwnedSourceFiles](./bitburner.singularity.getownedsourcefiles.md)
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getOwnedSourceFiles](./bitburner.ns.getownedsourcefiles.md)
|
||||||
|
|
||||||
## Singularity.getOwnedSourceFiles() method
|
## NS.getOwnedSourceFiles() method
|
||||||
|
|
||||||
Get a list of acquired Source-Files.
|
Get a list of acquired Source-Files.
|
||||||
|
|
||||||
@ -21,7 +21,5 @@ Array containing an object with number and level of the source file.
|
|||||||
|
|
||||||
RAM cost: 5 GB
|
RAM cost: 5 GB
|
||||||
|
|
||||||
Singularity - Level 3
|
|
||||||
|
|
||||||
Returns an array of source files
|
Returns an array of source files
|
||||||
|
|
@ -53,6 +53,7 @@ export interface NS extends Singularity
|
|||||||
| [getHacknetMultipliers()](./bitburner.ns.gethacknetmultipliers.md) | Get hacknet related multipliers. |
|
| [getHacknetMultipliers()](./bitburner.ns.gethacknetmultipliers.md) | Get hacknet related multipliers. |
|
||||||
| [getHackTime(host)](./bitburner.ns.gethacktime.md) | Get the execution time of a hack() call. |
|
| [getHackTime(host)](./bitburner.ns.gethacktime.md) | Get the execution time of a hack() call. |
|
||||||
| [getHostname()](./bitburner.ns.gethostname.md) | Returns a string with the hostname of the server that the script is running on. |
|
| [getHostname()](./bitburner.ns.gethostname.md) | Returns a string with the hostname of the server that the script is running on. |
|
||||||
|
| [getOwnedSourceFiles()](./bitburner.ns.getownedsourcefiles.md) | Get a list of acquired Source-Files. |
|
||||||
| [getPlayer()](./bitburner.ns.getplayer.md) | Get information about the player. |
|
| [getPlayer()](./bitburner.ns.getplayer.md) | Get information about the player. |
|
||||||
| [getPortHandle(port)](./bitburner.ns.getporthandle.md) | Get all data on a port. |
|
| [getPortHandle(port)](./bitburner.ns.getporthandle.md) | Get all data on a port. |
|
||||||
| [getPurchasedServerCost(ram)](./bitburner.ns.getpurchasedservercost.md) | Get cost of purchasing a server. |
|
| [getPurchasedServerCost(ram)](./bitburner.ns.getpurchasedservercost.md) | Get cost of purchasing a server. |
|
||||||
|
@ -43,7 +43,6 @@ This API requires Source-File 4 level 1 / 2 / 3 to use.
|
|||||||
| [getFactionFavorGain(faction)](./bitburner.singularity.getfactionfavorgain.md) | Get faction favor gain. |
|
| [getFactionFavorGain(faction)](./bitburner.singularity.getfactionfavorgain.md) | Get faction favor gain. |
|
||||||
| [getFactionRep(faction)](./bitburner.singularity.getfactionrep.md) | Get faction reputation. |
|
| [getFactionRep(faction)](./bitburner.singularity.getfactionrep.md) | Get faction reputation. |
|
||||||
| [getOwnedAugmentations(purchased)](./bitburner.singularity.getownedaugmentations.md) | Get a list of owned augmentation. |
|
| [getOwnedAugmentations(purchased)](./bitburner.singularity.getownedaugmentations.md) | Get a list of owned augmentation. |
|
||||||
| [getOwnedSourceFiles()](./bitburner.singularity.getownedsourcefiles.md) | Get a list of acquired Source-Files. |
|
|
||||||
| [getStats()](./bitburner.singularity.getstats.md) | |
|
| [getStats()](./bitburner.singularity.getstats.md) | |
|
||||||
| [getUpgradeHomeCoresCost()](./bitburner.singularity.getupgradehomecorescost.md) | Get the price of upgrading home cores. |
|
| [getUpgradeHomeCoresCost()](./bitburner.singularity.getupgradehomecorescost.md) | Get the price of upgrading home cores. |
|
||||||
| [getUpgradeHomeRamCost()](./bitburner.singularity.getupgradehomeramcost.md) | Get the price of upgrading home RAM. |
|
| [getUpgradeHomeRamCost()](./bitburner.singularity.getupgradehomeramcost.md) | Get the price of upgrading home RAM. |
|
||||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3006,7 +3006,7 @@ export interface Gang {
|
|||||||
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
||||||
* This includes Augmentations.
|
* This includes Augmentations.
|
||||||
*
|
*
|
||||||
* @returns Names of all Equpiment/Augmentations.
|
* @returns Names of all Equipments/Augmentations.
|
||||||
*/
|
*/
|
||||||
getEquipmentNames(): string[];
|
getEquipmentNames(): string[];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user