mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
API: Add a way to get the list of all factions (#1457)
This commit is contained in:
@@ -9,14 +9,14 @@ Attempts a coding contract, returning a reward string on success or empty string
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
attempt(answer: string | number | any[], filename: string, host?: string): string;
|
||||
attempt(answer: any, filename: string, host?: string): string;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| answer | string \| number \| any\[\] | Attempted solution for the contract. |
|
||||
| answer | any | Attempted solution for the contract. This can be a string formatted like submitting manually, or the answer in the format of the specific contract type. |
|
||||
| filename | string | Filename of the contract. |
|
||||
| host | string | _(Optional)_ Hostname of the server containing the contract. Optional. Defaults to current server if not provided. |
|
||||
|
||||
@@ -36,7 +36,9 @@ Attempts to solve the Coding Contract with the provided solution.
|
||||
|
||||
|
||||
```js
|
||||
const reward = ns.codingcontract.attempt(yourSolution, filename, hostname);
|
||||
const reward = ns.codingcontract.attempt("[solution, as, a, string]", filename, hostname);
|
||||
// or
|
||||
const reward = ns.codingcontract.attempt(["answer", "as", "an", "array"], filename, hostname);
|
||||
if (reward) {
|
||||
ns.tprint(`Contract solved successfully! Reward: ${reward}`);
|
||||
} else {
|
||||
|
||||
44
markdown/bitburner.codingcontract.getcontract.md
Normal file
44
markdown/bitburner.codingcontract.getcontract.md
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md) > [getContract](./bitburner.codingcontract.getcontract.md)
|
||||
|
||||
## CodingContract.getContract() method
|
||||
|
||||
Get various data about a specific contract.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getContract(filename: string, host?: string): CodingContractObject;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| filename | string | Filename of the contract. |
|
||||
| host | string | _(Optional)_ Host of the server containing the contract. Optional. Default to the current server if not provided. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
[CodingContractObject](./bitburner.codingcontractobject.md)
|
||||
|
||||
An object containing various data about the contract specified.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 15 GB
|
||||
|
||||
The returned object includes the type, data, description as well as methods for getting the number of tries remaining and submitting your answer. Depending on the type of the contract, the data is typed differently. Using type-narrowing, you can get the correct type of the data:
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
```js
|
||||
const contract = ns.codingcontract.getContract(fileName, hostName);
|
||||
if (contract.type === ns.enums.CodingContractName.FindLargestPrimeFactor) {
|
||||
const data = contract.data;
|
||||
// ^? data: number
|
||||
}
|
||||
```
|
||||
|
||||
@@ -9,7 +9,7 @@ Get the type of a coding contract.
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getContractType(filename: string, host?: string): string;
|
||||
getContractType(filename: string, host?: string): `${CodingContractName}`;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
@@ -21,7 +21,7 @@ getContractType(filename: string, host?: string): string;
|
||||
|
||||
**Returns:**
|
||||
|
||||
string
|
||||
\`${[CodingContractName](./bitburner.codingcontractname.md)<!-- -->}\`
|
||||
|
||||
Name describing the type of problem posed by the Coding Contract.
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ List all contract types.
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getContractTypes(): string[];
|
||||
getContractTypes(): `${CodingContractName}`[];
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
string\[\]
|
||||
\`${[CodingContractName](./bitburner.codingcontractname.md)<!-- -->}\`\[\]
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Get the input data.
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getData(filename: string, host?: string): CodingContractData;
|
||||
getData(filename: string, host?: string): any;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
@@ -21,7 +21,7 @@ getData(filename: string, host?: string): CodingContractData;
|
||||
|
||||
**Returns:**
|
||||
|
||||
[CodingContractData](./bitburner.codingcontractdata.md)
|
||||
any
|
||||
|
||||
The specified contract’s data, data type depends on contract type.
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface CodingContract
|
||||
| --- | --- |
|
||||
| [attempt(answer, filename, host)](./bitburner.codingcontract.attempt.md) | Attempts a coding contract, returning a reward string on success or empty string on failure. |
|
||||
| [createDummyContract(type)](./bitburner.codingcontract.createdummycontract.md) | Generate a dummy contract. |
|
||||
| [getContract(filename, host)](./bitburner.codingcontract.getcontract.md) | Get various data about a specific contract. |
|
||||
| [getContractType(filename, host)](./bitburner.codingcontract.getcontracttype.md) | Get the type of a coding contract. |
|
||||
| [getContractTypes()](./bitburner.codingcontract.getcontracttypes.md) | List all contract types. |
|
||||
| [getData(filename, host)](./bitburner.codingcontract.getdata.md) | Get the input data. |
|
||||
|
||||
15
markdown/bitburner.codingcontractanswer.md
Normal file
15
markdown/bitburner.codingcontractanswer.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractAnswer](./bitburner.codingcontractanswer.md)
|
||||
|
||||
## CodingContractAnswer type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export type CodingContractAnswer<T extends string> = T extends `${keyof CodingContractSignatures}`
|
||||
? CodingContractSignatures[T][1]
|
||||
: any;
|
||||
```
|
||||
**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md)
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
|
||||
## CodingContractData type
|
||||
|
||||
Coding contract data will differ depending on coding contract.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type CodingContractData = any;
|
||||
export type CodingContractData<T extends string> = T extends `${keyof CodingContractSignatures}`
|
||||
? CodingContractSignatures[T][0]
|
||||
: any;
|
||||
```
|
||||
**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md)
|
||||
|
||||
|
||||
45
markdown/bitburner.codingcontractname.md
Normal file
45
markdown/bitburner.codingcontractname.md
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractName](./bitburner.codingcontractname.md)
|
||||
|
||||
## CodingContractName enum
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum CodingContractName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| AlgorithmicStockTraderI | <code>"Algorithmic Stock Trader I"</code> | |
|
||||
| AlgorithmicStockTraderII | <code>"Algorithmic Stock Trader II"</code> | |
|
||||
| AlgorithmicStockTraderIII | <code>"Algorithmic Stock Trader III"</code> | |
|
||||
| AlgorithmicStockTraderIV | <code>"Algorithmic Stock Trader IV"</code> | |
|
||||
| ArrayJumpingGame | <code>"Array Jumping Game"</code> | |
|
||||
| ArrayJumpingGameII | <code>"Array Jumping Game II"</code> | |
|
||||
| CompressionIIILZCompression | <code>"Compression III: LZ Compression"</code> | |
|
||||
| CompressionIILZDecompression | <code>"Compression II: LZ Decompression"</code> | |
|
||||
| CompressionIRLECompression | <code>"Compression I: RLE Compression"</code> | |
|
||||
| EncryptionICaesarCipher | <code>"Encryption I: Caesar Cipher"</code> | |
|
||||
| EncryptionIIVigenereCipher | <code>"Encryption II: Vigenère Cipher"</code> | |
|
||||
| FindAllValidMathExpressions | <code>"Find All Valid Math Expressions"</code> | |
|
||||
| FindLargestPrimeFactor | <code>"Find Largest Prime Factor"</code> | |
|
||||
| GenerateIPAddresses | <code>"Generate IP Addresses"</code> | |
|
||||
| HammingCodesEncodedBinaryToInteger | <code>"HammingCodes: Encoded Binary to Integer"</code> | |
|
||||
| HammingCodesIntegerToEncodedBinary | <code>"HammingCodes: Integer to Encoded Binary"</code> | |
|
||||
| MergeOverlappingIntervals | <code>"Merge Overlapping Intervals"</code> | |
|
||||
| MinimumPathSumInATriangle | <code>"Minimum Path Sum in a Triangle"</code> | |
|
||||
| Proper2ColoringOfAGraph | <code>"Proper 2-Coloring of a Graph"</code> | |
|
||||
| SanitizeParenthesesInExpression | <code>"Sanitize Parentheses in Expression"</code> | |
|
||||
| ShortestPathInAGrid | <code>"Shortest Path in a Grid"</code> | |
|
||||
| SpiralizeMatrix | <code>"Spiralize Matrix"</code> | |
|
||||
| SquareRoot | <code>"Square Root"</code> | |
|
||||
| SubarrayWithMaximumSum | <code>"Subarray with Maximum Sum"</code> | |
|
||||
| TotalWaysToSum | <code>"Total Ways to Sum"</code> | |
|
||||
| TotalWaysToSumII | <code>"Total Ways to Sum II"</code> | |
|
||||
| UniquePathsInAGridI | <code>"Unique Paths in a Grid I"</code> | |
|
||||
| UniquePathsInAGridII | <code>"Unique Paths in a Grid II"</code> | |
|
||||
|
||||
21
markdown/bitburner.codingcontractobject.md
Normal file
21
markdown/bitburner.codingcontractobject.md
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractObject](./bitburner.codingcontractobject.md)
|
||||
|
||||
## CodingContractObject type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export type CodingContractObject = {
|
||||
[T in keyof CodingContractSignatures]: {
|
||||
type: T;
|
||||
data: CodingContractSignatures[T][0];
|
||||
submit: (answer: CodingContractSignatures[T][1] | string) => string;
|
||||
description: string;
|
||||
numTriesRemaining: () => number;
|
||||
};
|
||||
}[keyof CodingContractSignatures];
|
||||
```
|
||||
**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md)
|
||||
|
||||
42
markdown/bitburner.codingcontractsignatures.md
Normal file
42
markdown/bitburner.codingcontractsignatures.md
Normal file
@@ -0,0 +1,42 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractSignatures](./bitburner.codingcontractsignatures.md)
|
||||
|
||||
## CodingContractSignatures type
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export type CodingContractSignatures = {
|
||||
[CodingContractName.FindLargestPrimeFactor]: [number, number];
|
||||
[CodingContractName.SubarrayWithMaximumSum]: [number[], number];
|
||||
[CodingContractName.TotalWaysToSum]: [number, number];
|
||||
[CodingContractName.TotalWaysToSumII]: [[number, number[]], number];
|
||||
[CodingContractName.SpiralizeMatrix]: [number[][], number[]];
|
||||
[CodingContractName.ArrayJumpingGame]: [number[], 1 | 0];
|
||||
[CodingContractName.ArrayJumpingGameII]: [number[], number];
|
||||
[CodingContractName.MergeOverlappingIntervals]: [[number, number][], [number, number][]];
|
||||
[CodingContractName.GenerateIPAddresses]: [string, string[]];
|
||||
[CodingContractName.AlgorithmicStockTraderI]: [number[], number];
|
||||
[CodingContractName.AlgorithmicStockTraderII]: [number[], number];
|
||||
[CodingContractName.AlgorithmicStockTraderIII]: [number[], number];
|
||||
[CodingContractName.AlgorithmicStockTraderIV]: [[number, number[]], number];
|
||||
[CodingContractName.MinimumPathSumInATriangle]: [number[][], number];
|
||||
[CodingContractName.UniquePathsInAGridI]: [[number, number], number];
|
||||
[CodingContractName.UniquePathsInAGridII]: [(1 | 0)[][], number];
|
||||
[CodingContractName.ShortestPathInAGrid]: [(1 | 0)[][], string];
|
||||
[CodingContractName.SanitizeParenthesesInExpression]: [string, string[]];
|
||||
[CodingContractName.FindAllValidMathExpressions]: [[string, number], string[]];
|
||||
[CodingContractName.HammingCodesIntegerToEncodedBinary]: [number, string];
|
||||
[CodingContractName.HammingCodesEncodedBinaryToInteger]: [string, number];
|
||||
[CodingContractName.Proper2ColoringOfAGraph]: [[number, [number, number][]], (1 | 0)[]];
|
||||
[CodingContractName.CompressionIRLECompression]: [string, string];
|
||||
[CodingContractName.CompressionIILZDecompression]: [string, string];
|
||||
[CodingContractName.CompressionIIILZCompression]: [string, string];
|
||||
[CodingContractName.EncryptionICaesarCipher]: [[string, number], string];
|
||||
[CodingContractName.EncryptionIIVigenereCipher]: [[string, string], string];
|
||||
[CodingContractName.SquareRoot]: [bigint, bigint, [string, string]];
|
||||
};
|
||||
```
|
||||
**References:** [CodingContractName.FindLargestPrimeFactor](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SubarrayWithMaximumSum](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.TotalWaysToSum](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.TotalWaysToSumII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SpiralizeMatrix](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ArrayJumpingGame](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ArrayJumpingGameII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.MergeOverlappingIntervals](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.GenerateIPAddresses](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderI](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderIII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderIV](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.MinimumPathSumInATriangle](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.UniquePathsInAGridI](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.UniquePathsInAGridII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ShortestPathInAGrid](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SanitizeParenthesesInExpression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.FindAllValidMathExpressions](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.HammingCodesIntegerToEncodedBinary](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.HammingCodesEncodedBinaryToInteger](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.Proper2ColoringOfAGraph](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIRLECompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIILZDecompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIIILZCompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.EncryptionICaesarCipher](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.EncryptionIIVigenereCipher](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SquareRoot](./bitburner.codingcontractname.md)
|
||||
|
||||
55
markdown/bitburner.factionname.md
Normal file
55
markdown/bitburner.factionname.md
Normal file
@@ -0,0 +1,55 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [FactionName](./bitburner.factionname.md)
|
||||
|
||||
## FactionName enum
|
||||
|
||||
Names of all factions.
|
||||
|
||||
Warning: Spoiler ahead. This enum contains names of \*\*all\*\* factions. If you do not want to know what all the factions are, you should not check this enum. Some factions are only accessible in the endgame.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum FactionName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Aevum | <code>"Aevum"</code> | |
|
||||
| BachmanAssociates | <code>"Bachman & Associates"</code> | |
|
||||
| BitRunners | <code>"BitRunners"</code> | |
|
||||
| Bladeburners | <code>"Bladeburners"</code> | |
|
||||
| BladeIndustries | <code>"Blade Industries"</code> | |
|
||||
| Chongqing | <code>"Chongqing"</code> | |
|
||||
| ChurchOfTheMachineGod | <code>"Church of the Machine God"</code> | |
|
||||
| ClarkeIncorporated | <code>"Clarke Incorporated"</code> | |
|
||||
| CyberSec | <code>"CyberSec"</code> | |
|
||||
| Daedalus | <code>"Daedalus"</code> | |
|
||||
| ECorp | <code>"ECorp"</code> | |
|
||||
| FourSigma | <code>"Four Sigma"</code> | |
|
||||
| FulcrumSecretTechnologies | <code>"Fulcrum Secret Technologies"</code> | |
|
||||
| Illuminati | <code>"Illuminati"</code> | |
|
||||
| Ishima | <code>"Ishima"</code> | |
|
||||
| KuaiGongInternational | <code>"KuaiGong International"</code> | |
|
||||
| MegaCorp | <code>"MegaCorp"</code> | |
|
||||
| Netburners | <code>"Netburners"</code> | |
|
||||
| NewTokyo | <code>"New Tokyo"</code> | |
|
||||
| NiteSec | <code>"NiteSec"</code> | |
|
||||
| NWO | <code>"NWO"</code> | |
|
||||
| OmniTekIncorporated | <code>"OmniTek Incorporated"</code> | |
|
||||
| Sector12 | <code>"Sector-12"</code> | |
|
||||
| ShadowsOfAnarchy | <code>"Shadows of Anarchy"</code> | |
|
||||
| Silhouette | <code>"Silhouette"</code> | |
|
||||
| SlumSnakes | <code>"Slum Snakes"</code> | |
|
||||
| SpeakersForTheDead | <code>"Speakers for the Dead"</code> | |
|
||||
| Tetrads | <code>"Tetrads"</code> | |
|
||||
| TheBlackHand | <code>"The Black Hand"</code> | |
|
||||
| TheCovenant | <code>"The Covenant"</code> | |
|
||||
| TheDarkArmy | <code>"The Dark Army"</code> | |
|
||||
| TheSyndicate | <code>"The Syndicate"</code> | |
|
||||
| TianDiHui | <code>"Tian Di Hui"</code> | |
|
||||
| Volhaven | <code>"Volhaven"</code> | |
|
||||
|
||||
@@ -15,9 +15,11 @@
|
||||
| [BladeburnerOperationName](./bitburner.bladeburneroperationname.md) | Operation names of Bladeburner |
|
||||
| [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) | Skill names type of Bladeburner |
|
||||
| [CityName](./bitburner.cityname.md) | Names of all cities |
|
||||
| [CodingContractName](./bitburner.codingcontractname.md) | |
|
||||
| [CompanyName](./bitburner.companyname.md) | Names of all companies |
|
||||
| [CreatingCorporationCheckResult](./bitburner.creatingcorporationcheckresult.md) | |
|
||||
| [CrimeType](./bitburner.crimetype.md) | |
|
||||
| [FactionName](./bitburner.factionname.md) | <p>Names of all factions.</p><p>Warning: Spoiler ahead. This enum contains names of \*\*all\*\* factions. If you do not want to know what all the factions are, you should not check this enum. Some factions are only accessible in the endgame.</p> |
|
||||
| [FactionWorkType](./bitburner.factionworktype.md) | |
|
||||
| [GymLocationName](./bitburner.gymlocationname.md) | Locations of gym |
|
||||
| [GymType](./bitburner.gymtype.md) | |
|
||||
@@ -164,7 +166,10 @@
|
||||
| --- | --- |
|
||||
| [BladeburnerActionName](./bitburner.bladeburneractionname.md) | |
|
||||
| [BladeburnerActionTypeForSleeve](./bitburner.bladeburneractiontypeforsleeve.md) | |
|
||||
| [CodingContractData](./bitburner.codingcontractdata.md) | Coding contract data will differ depending on coding contract. |
|
||||
| [CodingContractAnswer](./bitburner.codingcontractanswer.md) | |
|
||||
| [CodingContractData](./bitburner.codingcontractdata.md) | |
|
||||
| [CodingContractObject](./bitburner.codingcontractobject.md) | |
|
||||
| [CodingContractSignatures](./bitburner.codingcontractsignatures.md) | |
|
||||
| [CorpEmployeePosition](./bitburner.corpemployeeposition.md) | |
|
||||
| [CorpIndustryName](./bitburner.corpindustryname.md) | |
|
||||
| [CorpMaterialName](./bitburner.corpmaterialname.md) | |
|
||||
|
||||
@@ -19,7 +19,9 @@ export type NSEnums = {
|
||||
ToastVariant: typeof ToastVariant;
|
||||
UniversityClassType: typeof UniversityClassType;
|
||||
CompanyName: typeof CompanyName;
|
||||
FactionName: typeof FactionName;
|
||||
CodingContractName: typeof CodingContractName;
|
||||
};
|
||||
```
|
||||
**References:** [CityName](./bitburner.cityname.md)<!-- -->, [CrimeType](./bitburner.crimetype.md)<!-- -->, [FactionWorkType](./bitburner.factionworktype.md)<!-- -->, [GymType](./bitburner.gymtype.md)<!-- -->, [JobName](./bitburner.jobname.md)<!-- -->, [JobField](./bitburner.jobfield.md)<!-- -->, [LocationName](./bitburner.locationname.md)<!-- -->, [ToastVariant](./bitburner.toastvariant.md)<!-- -->, [UniversityClassType](./bitburner.universityclasstype.md)<!-- -->, [CompanyName](./bitburner.companyname.md)
|
||||
**References:** [CityName](./bitburner.cityname.md)<!-- -->, [CrimeType](./bitburner.crimetype.md)<!-- -->, [FactionWorkType](./bitburner.factionworktype.md)<!-- -->, [GymType](./bitburner.gymtype.md)<!-- -->, [JobName](./bitburner.jobname.md)<!-- -->, [JobField](./bitburner.jobfield.md)<!-- -->, [LocationName](./bitburner.locationname.md)<!-- -->, [ToastVariant](./bitburner.toastvariant.md)<!-- -->, [UniversityClassType](./bitburner.universityclasstype.md)<!-- -->, [CompanyName](./bitburner.companyname.md)<!-- -->, [FactionName](./bitburner.factionname.md)<!-- -->, [CodingContractName](./bitburner.codingcontractname.md)
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
ToastVariant,
|
||||
UniversityClassType,
|
||||
CompanyName,
|
||||
FactionName,
|
||||
type MessageFilename,
|
||||
} from "@enums";
|
||||
import { PromptEvent } from "./ui/React/PromptManager";
|
||||
@@ -124,6 +125,7 @@ export const enums: NSEnums = {
|
||||
ToastVariant,
|
||||
UniversityClassType,
|
||||
CompanyName,
|
||||
FactionName,
|
||||
CodingContractName,
|
||||
};
|
||||
for (const val of Object.values(enums)) Object.freeze(val);
|
||||
|
||||
45
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
45
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -8350,6 +8350,50 @@ declare enum CompanyName {
|
||||
NoodleBar = "Noodle Bar",
|
||||
}
|
||||
|
||||
/**
|
||||
* Names of all factions.
|
||||
*
|
||||
* Warning: Spoiler ahead. This enum contains names of **all** factions. If you do not want to know what all the
|
||||
* factions are, you should not check this enum. Some factions are only accessible in the endgame.
|
||||
*
|
||||
* @public */
|
||||
declare enum FactionName {
|
||||
Illuminati = "Illuminati",
|
||||
Daedalus = "Daedalus",
|
||||
TheCovenant = "The Covenant",
|
||||
ECorp = "ECorp",
|
||||
MegaCorp = "MegaCorp",
|
||||
BachmanAssociates = "Bachman & Associates",
|
||||
BladeIndustries = "Blade Industries",
|
||||
NWO = "NWO",
|
||||
ClarkeIncorporated = "Clarke Incorporated",
|
||||
OmniTekIncorporated = "OmniTek Incorporated",
|
||||
FourSigma = "Four Sigma",
|
||||
KuaiGongInternational = "KuaiGong International",
|
||||
FulcrumSecretTechnologies = "Fulcrum Secret Technologies",
|
||||
BitRunners = "BitRunners",
|
||||
TheBlackHand = "The Black Hand",
|
||||
NiteSec = "NiteSec",
|
||||
Aevum = "Aevum",
|
||||
Chongqing = "Chongqing",
|
||||
Ishima = "Ishima",
|
||||
NewTokyo = "New Tokyo",
|
||||
Sector12 = "Sector-12",
|
||||
Volhaven = "Volhaven",
|
||||
SpeakersForTheDead = "Speakers for the Dead",
|
||||
TheDarkArmy = "The Dark Army",
|
||||
TheSyndicate = "The Syndicate",
|
||||
Silhouette = "Silhouette",
|
||||
Tetrads = "Tetrads",
|
||||
SlumSnakes = "Slum Snakes",
|
||||
Netburners = "Netburners",
|
||||
TianDiHui = "Tian Di Hui",
|
||||
CyberSec = "CyberSec",
|
||||
Bladeburners = "Bladeburners",
|
||||
ChurchOfTheMachineGod = "Church of the Machine God",
|
||||
ShadowsOfAnarchy = "Shadows of Anarchy",
|
||||
}
|
||||
|
||||
declare enum CodingContractName {
|
||||
FindLargestPrimeFactor = "Find Largest Prime Factor",
|
||||
SubarrayWithMaximumSum = "Subarray with Maximum Sum",
|
||||
@@ -8441,6 +8485,7 @@ export type NSEnums = {
|
||||
ToastVariant: typeof ToastVariant;
|
||||
UniversityClassType: typeof UniversityClassType;
|
||||
CompanyName: typeof CompanyName;
|
||||
FactionName: typeof FactionName;
|
||||
CodingContractName: typeof CodingContractName;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user