mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
SINGULARITY: Added getCompanyPositions (#459)
Also workForCompany will throw an error if provided a bad company name, instead of returning false
This commit is contained in:
29
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
29
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -1698,6 +1698,35 @@ export interface Singularity {
|
||||
*/
|
||||
getUpgradeHomeCoresCost(): number;
|
||||
|
||||
/**
|
||||
* Get List of Company Positions.
|
||||
* @remarks
|
||||
* RAM cost: 2 GB * 16/4/1
|
||||
*
|
||||
*
|
||||
* This function will return a list of positions at a specific company.
|
||||
*
|
||||
* This function will return the position list if the company name is valid.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* // NS1:
|
||||
* var COMPANY_NAME = "Noodle Bar";
|
||||
*
|
||||
* var jobList = singularity.getCompanyPositions(COMPANY_NAME);
|
||||
* ```
|
||||
* @example
|
||||
* ```js
|
||||
* // NS2:
|
||||
* const COMPANY_NAME = "Noodle Bar";
|
||||
*
|
||||
* let jobList = ns.singularity.getCompanyPositions(COMPANY_NAME);
|
||||
* ```
|
||||
* @param companyName - Name of company to get the position list for. Must be an exact match.
|
||||
* @returns The position list if the company name is valid.
|
||||
*/
|
||||
getCompanyPositions(companyName: string): CompanyPosName[];
|
||||
|
||||
/**
|
||||
* Work for a company.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user