mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Fix and rebuild doc
This commit is contained in:
parent
4ade263ae8
commit
f74002cce0
24
markdown/bitburner.companypositioninfo.md
Normal file
24
markdown/bitburner.companypositioninfo.md
Normal file
@ -0,0 +1,24 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md)
|
||||
|
||||
## CompanyPositionInfo interface
|
||||
|
||||
Company position requirements and salary.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface CompanyPositionInfo
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [name](./bitburner.companypositioninfo.name.md) | | [JobName](./bitburner.jobname.md) | |
|
||||
| [nextPosition](./bitburner.companypositioninfo.nextposition.md) | | [JobName](./bitburner.jobname.md) \| null | |
|
||||
| [requiredReputation](./bitburner.companypositioninfo.requiredreputation.md) | | number | |
|
||||
| [requiredSkills](./bitburner.companypositioninfo.requiredskills.md) | | [Skills](./bitburner.skills.md) | |
|
||||
| [salary](./bitburner.companypositioninfo.salary.md) | | number | |
|
||||
|
11
markdown/bitburner.companypositioninfo.name.md
Normal file
11
markdown/bitburner.companypositioninfo.name.md
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md) > [name](./bitburner.companypositioninfo.name.md)
|
||||
|
||||
## CompanyPositionInfo.name property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
name: JobName;
|
||||
```
|
11
markdown/bitburner.companypositioninfo.nextposition.md
Normal file
11
markdown/bitburner.companypositioninfo.nextposition.md
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md) > [nextPosition](./bitburner.companypositioninfo.nextposition.md)
|
||||
|
||||
## CompanyPositionInfo.nextPosition property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
nextPosition: JobName | null;
|
||||
```
|
11
markdown/bitburner.companypositioninfo.requiredreputation.md
Normal file
11
markdown/bitburner.companypositioninfo.requiredreputation.md
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md) > [requiredReputation](./bitburner.companypositioninfo.requiredreputation.md)
|
||||
|
||||
## CompanyPositionInfo.requiredReputation property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
requiredReputation: number;
|
||||
```
|
11
markdown/bitburner.companypositioninfo.requiredskills.md
Normal file
11
markdown/bitburner.companypositioninfo.requiredskills.md
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md) > [requiredSkills](./bitburner.companypositioninfo.requiredskills.md)
|
||||
|
||||
## CompanyPositionInfo.requiredSkills property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
requiredSkills: Skills;
|
||||
```
|
11
markdown/bitburner.companypositioninfo.salary.md
Normal file
11
markdown/bitburner.companypositioninfo.salary.md
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyPositionInfo](./bitburner.companypositioninfo.md) > [salary](./bitburner.companypositioninfo.salary.md)
|
||||
|
||||
## CompanyPositionInfo.salary property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
salary: number;
|
||||
```
|
@ -31,6 +31,7 @@
|
||||
| [Bladeburner](./bitburner.bladeburner.md) | Bladeburner API |
|
||||
| [BladeburnerCurAction](./bitburner.bladeburnercuraction.md) | Bladeburner current action. |
|
||||
| [CodingContract](./bitburner.codingcontract.md) | Coding Contract API |
|
||||
| [CompanyPositionInfo](./bitburner.companypositioninfo.md) | Company position requirements and salary. |
|
||||
| [CorpConstants](./bitburner.corpconstants.md) | Corporation related constants |
|
||||
| [CorpIndustryData](./bitburner.corpindustrydata.md) | Data for an individual industry |
|
||||
| [CorpMaterialConstantData](./bitburner.corpmaterialconstantdata.md) | Corporation material information |
|
||||
|
43
markdown/bitburner.singularity.getcompanypositioninfo.md
Normal file
43
markdown/bitburner.singularity.getcompanypositioninfo.md
Normal file
@ -0,0 +1,43 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getCompanyPositionInfo](./bitburner.singularity.getcompanypositioninfo.md)
|
||||
|
||||
## Singularity.getCompanyPositionInfo() method
|
||||
|
||||
Get Requirements for Company Position.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getCompanyPositionInfo(companyName: string, positionName: JobName): CompanyPositionInfo;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| companyName | string | Name of company to get the requirements for. Must be an exact match. |
|
||||
| positionName | [JobName](./bitburner.jobname.md) | Name of position to get the requirements for. Must be an exact match. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
[CompanyPositionInfo](./bitburner.companypositioninfo.md)
|
||||
|
||||
CompanyPositionInfo object.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 2 GB \* 16/4/1
|
||||
|
||||
This function will return an object that contains the requirements for a specific position at a specific country.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
```js
|
||||
const companyName = "ECorp";
|
||||
const position = "Chief Executive Officer";
|
||||
|
||||
let requirements = ns.singularity.getCompanyPositionInfo(companyName, position);
|
||||
```
|
||||
|
54
markdown/bitburner.singularity.getcompanypositions.md
Normal file
54
markdown/bitburner.singularity.getcompanypositions.md
Normal file
@ -0,0 +1,54 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getCompanyPositions](./bitburner.singularity.getcompanypositions.md)
|
||||
|
||||
## Singularity.getCompanyPositions() method
|
||||
|
||||
Get List of Company Positions.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getCompanyPositions(companyName: string): JobName[];
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| companyName | string | Name of company to get the position list for. Must be an exact match. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
[JobName](./bitburner.jobname.md)<!-- -->\[\]
|
||||
|
||||
The position list if the company name is valid.
|
||||
|
||||
## 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 1
|
||||
|
||||
|
||||
```js
|
||||
// NS1:
|
||||
var COMPANY_NAME = "Noodle Bar";
|
||||
|
||||
var jobList = singularity.getCompanyPositions(COMPANY_NAME);
|
||||
```
|
||||
|
||||
## Example 2
|
||||
|
||||
|
||||
```js
|
||||
// NS2:
|
||||
const COMPANY_NAME = "Noodle Bar";
|
||||
|
||||
let jobList = ns.singularity.getCompanyPositions(COMPANY_NAME);
|
||||
```
|
||||
|
@ -38,6 +38,8 @@ This API requires Source-File 4 to use. The RAM cost of all these functions is m
|
||||
| [getAugmentationStats(name)](./bitburner.singularity.getaugmentationstats.md) | Get the stats of an augmentation. |
|
||||
| [getCompanyFavor(companyName)](./bitburner.singularity.getcompanyfavor.md) | Get company favor. |
|
||||
| [getCompanyFavorGain(companyName)](./bitburner.singularity.getcompanyfavorgain.md) | Get company favor gain. |
|
||||
| [getCompanyPositionInfo(companyName, positionName)](./bitburner.singularity.getcompanypositioninfo.md) | Get Requirements for Company Position. |
|
||||
| [getCompanyPositions(companyName)](./bitburner.singularity.getcompanypositions.md) | Get List of Company Positions. |
|
||||
| [getCompanyRep(companyName)](./bitburner.singularity.getcompanyrep.md) | Get company reputation. |
|
||||
| [getCrimeChance(crime)](./bitburner.singularity.getcrimechance.md) | Get chance to successfully commit a crime. |
|
||||
| [getCrimeStats(crime)](./bitburner.singularity.getcrimestats.md) | Get stats related to a crime. |
|
||||
|
@ -15,7 +15,7 @@ getNumSleeves(): number;
|
||||
|
||||
number
|
||||
|
||||
number of duplicate sleeves the player has.
|
||||
Number of duplicate sleeves the player has.
|
||||
|
||||
## Remarks
|
||||
|
||||
|
@ -28,7 +28,7 @@ If you are not in BitNode-10, then you must have Source-File 10 in order to use
|
||||
| [getSleevePurchasableAugs(sleeveNumber)](./bitburner.sleeve.getsleevepurchasableaugs.md) | List purchasable augs for a sleeve. |
|
||||
| [getTask(sleeveNumber)](./bitburner.sleeve.gettask.md) | Get task of a sleeve. |
|
||||
| [purchaseSleeveAug(sleeveNumber, augName)](./bitburner.sleeve.purchasesleeveaug.md) | Purchase an aug for a sleeve. |
|
||||
| [setToBladeburnerAction(sleeveNumber, action, contract)](./bitburner.sleeve.settobladeburneraction.md) | Set a sleeve to perform bladeburner actions. |
|
||||
| [setToBladeburnerAction(sleeveNumber, action, contract)](./bitburner.sleeve.settobladeburneraction.md) | Set a sleeve to perform Bladeburner actions. |
|
||||
| [setToCommitCrime(sleeveNumber, crimeType)](./bitburner.sleeve.settocommitcrime.md) | Set a sleeve to commit crime. |
|
||||
| [setToCompanyWork(sleeveNumber, companyName)](./bitburner.sleeve.settocompanywork.md) | Set a sleeve to work for a company. |
|
||||
| [setToFactionWork(sleeveNumber, factionName, factionWorkType)](./bitburner.sleeve.settofactionwork.md) | Set a sleeve to work for a faction. |
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
## Sleeve.setToBladeburnerAction() method
|
||||
|
||||
Set a sleeve to perform bladeburner actions.
|
||||
Set a sleeve to perform Bladeburner actions.
|
||||
|
||||
**Signature:**
|
||||
|
||||
@ -16,7 +16,7 @@ setToBladeburnerAction(sleeveNumber: number, action: string, contract?: string):
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| sleeveNumber | number | Index of the sleeve to workout at the gym. |
|
||||
| sleeveNumber | number | Index of the sleeve to perform a Bladeburner action. |
|
||||
| action | string | Name of the action to be performed. |
|
||||
| contract | string | _(Optional)_ Name of the contract if applicable. |
|
||||
|
||||
@ -24,11 +24,11 @@ setToBladeburnerAction(sleeveNumber: number, action: string, contract?: string):
|
||||
|
||||
boolean
|
||||
|
||||
True if the sleeve started working out, false otherwise.
|
||||
True if the sleeve started the given Bladeburner action, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 4 GB
|
||||
|
||||
Return a boolean indicating whether or not the sleeve started working out.
|
||||
Return a boolean indicating whether or not the sleeve started a Bladeburner action.
|
||||
|
||||
|
@ -23,11 +23,11 @@ setToCompanyWork(sleeveNumber: number, companyName: string): boolean;
|
||||
|
||||
boolean
|
||||
|
||||
True if the sleeve started working on this company, false otherwise.
|
||||
True if the sleeve started working for this company, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 4 GB
|
||||
|
||||
Return a boolean indicating whether or not the sleeve started working or this company.
|
||||
Return a boolean indicating whether or not the sleeve started working for a company.
|
||||
|
||||
|
@ -28,11 +28,11 @@ setToFactionWork(
|
||||
|
||||
boolean \| undefined
|
||||
|
||||
True if the sleeve started working on this faction, false otherwise, can also throw on errors
|
||||
True if the sleeve started working for this faction, false otherwise. Can also throw on errors.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 4 GB
|
||||
|
||||
Return a boolean indicating whether or not the sleeve started working or this faction.
|
||||
Return a boolean indicating whether or not the sleeve started working for a faction.
|
||||
|
||||
|
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -1747,7 +1747,7 @@ export interface Singularity {
|
||||
* @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[];
|
||||
getCompanyPositions(companyName: string): JobName[];
|
||||
|
||||
/**
|
||||
* Work for a company.
|
||||
@ -2389,8 +2389,8 @@ export interface Singularity {
|
||||
* @returns - An object representing the requirements and salary for a company/position combination.
|
||||
*/
|
||||
export interface CompanyPositionInfo {
|
||||
name: CompanyPosName;
|
||||
nextPosition: CompanyPosName | null;
|
||||
name: JobName;
|
||||
nextPosition: JobName | null;
|
||||
salary: number;
|
||||
requiredReputation: number;
|
||||
requiredSkills: Skills;
|
||||
|
Loading…
Reference in New Issue
Block a user