From 2965f518795d3debdd56a440c1de1e39a09f963d Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Wed, 29 Jan 2025 01:40:11 +0700 Subject: [PATCH] API: Add a way to get the list of all factions (#1457) --- markdown/bitburner.codingcontract.attempt.md | 8 ++- .../bitburner.codingcontract.getcontract.md | 44 +++++++++++++++ ...itburner.codingcontract.getcontracttype.md | 4 +- ...tburner.codingcontract.getcontracttypes.md | 4 +- markdown/bitburner.codingcontract.getdata.md | 4 +- markdown/bitburner.codingcontract.md | 1 + markdown/bitburner.codingcontractanswer.md | 15 +++++ markdown/bitburner.codingcontractdata.md | 8 ++- markdown/bitburner.codingcontractname.md | 45 +++++++++++++++ markdown/bitburner.codingcontractobject.md | 21 +++++++ .../bitburner.codingcontractsignatures.md | 42 ++++++++++++++ markdown/bitburner.factionname.md | 55 +++++++++++++++++++ markdown/bitburner.md | 7 ++- markdown/bitburner.nsenums.md | 4 +- src/NetscriptFunctions.ts | 2 + src/ScriptEditor/NetscriptDefinitions.d.ts | 45 +++++++++++++++ 16 files changed, 295 insertions(+), 14 deletions(-) create mode 100644 markdown/bitburner.codingcontract.getcontract.md create mode 100644 markdown/bitburner.codingcontractanswer.md create mode 100644 markdown/bitburner.codingcontractname.md create mode 100644 markdown/bitburner.codingcontractobject.md create mode 100644 markdown/bitburner.codingcontractsignatures.md create mode 100644 markdown/bitburner.factionname.md diff --git a/markdown/bitburner.codingcontract.attempt.md b/markdown/bitburner.codingcontract.attempt.md index bb91e2b1d..984768d59 100644 --- a/markdown/bitburner.codingcontract.attempt.md +++ b/markdown/bitburner.codingcontract.attempt.md @@ -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 { diff --git a/markdown/bitburner.codingcontract.getcontract.md b/markdown/bitburner.codingcontract.getcontract.md new file mode 100644 index 000000000..b6c2cfdf9 --- /dev/null +++ b/markdown/bitburner.codingcontract.getcontract.md @@ -0,0 +1,44 @@ + + +[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 +} +``` + diff --git a/markdown/bitburner.codingcontract.getcontracttype.md b/markdown/bitburner.codingcontract.getcontracttype.md index 03468421b..8735daacc 100644 --- a/markdown/bitburner.codingcontract.getcontracttype.md +++ b/markdown/bitburner.codingcontract.getcontracttype.md @@ -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. diff --git a/markdown/bitburner.codingcontract.getcontracttypes.md b/markdown/bitburner.codingcontract.getcontracttypes.md index 62a0e6c54..33935ac5e 100644 --- a/markdown/bitburner.codingcontract.getcontracttypes.md +++ b/markdown/bitburner.codingcontract.getcontracttypes.md @@ -9,11 +9,11 @@ List all contract types. **Signature:** ```typescript -getContractTypes(): string[]; +getContractTypes(): `${CodingContractName}`[]; ``` **Returns:** -string\[\] +\`${[CodingContractName](./bitburner.codingcontractname.md)}\`\[\] ## Remarks diff --git a/markdown/bitburner.codingcontract.getdata.md b/markdown/bitburner.codingcontract.getdata.md index 4f744ef27..f033b8eac 100644 --- a/markdown/bitburner.codingcontract.getdata.md +++ b/markdown/bitburner.codingcontract.getdata.md @@ -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. diff --git a/markdown/bitburner.codingcontract.md b/markdown/bitburner.codingcontract.md index e32a0bfdf..9b4890910 100644 --- a/markdown/bitburner.codingcontract.md +++ b/markdown/bitburner.codingcontract.md @@ -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. | diff --git a/markdown/bitburner.codingcontractanswer.md b/markdown/bitburner.codingcontractanswer.md new file mode 100644 index 000000000..6c8c16484 --- /dev/null +++ b/markdown/bitburner.codingcontractanswer.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractAnswer](./bitburner.codingcontractanswer.md) + +## CodingContractAnswer type + +**Signature:** + +```typescript +export type CodingContractAnswer = T extends `${keyof CodingContractSignatures}` + ? CodingContractSignatures[T][1] + : any; +``` +**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md) + diff --git a/markdown/bitburner.codingcontractdata.md b/markdown/bitburner.codingcontractdata.md index 8351e524a..2005825c1 100644 --- a/markdown/bitburner.codingcontractdata.md +++ b/markdown/bitburner.codingcontractdata.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 `${keyof CodingContractSignatures}` + ? CodingContractSignatures[T][0] + : any; ``` +**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md) + diff --git a/markdown/bitburner.codingcontractname.md b/markdown/bitburner.codingcontractname.md new file mode 100644 index 000000000..07871c196 --- /dev/null +++ b/markdown/bitburner.codingcontractname.md @@ -0,0 +1,45 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractName](./bitburner.codingcontractname.md) + +## CodingContractName enum + +**Signature:** + +```typescript +declare enum CodingContractName +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| AlgorithmicStockTraderI | "Algorithmic Stock Trader I" | | +| AlgorithmicStockTraderII | "Algorithmic Stock Trader II" | | +| AlgorithmicStockTraderIII | "Algorithmic Stock Trader III" | | +| AlgorithmicStockTraderIV | "Algorithmic Stock Trader IV" | | +| ArrayJumpingGame | "Array Jumping Game" | | +| ArrayJumpingGameII | "Array Jumping Game II" | | +| CompressionIIILZCompression | "Compression III: LZ Compression" | | +| CompressionIILZDecompression | "Compression II: LZ Decompression" | | +| CompressionIRLECompression | "Compression I: RLE Compression" | | +| EncryptionICaesarCipher | "Encryption I: Caesar Cipher" | | +| EncryptionIIVigenereCipher | "Encryption II: Vigenère Cipher" | | +| FindAllValidMathExpressions | "Find All Valid Math Expressions" | | +| FindLargestPrimeFactor | "Find Largest Prime Factor" | | +| GenerateIPAddresses | "Generate IP Addresses" | | +| HammingCodesEncodedBinaryToInteger | "HammingCodes: Encoded Binary to Integer" | | +| HammingCodesIntegerToEncodedBinary | "HammingCodes: Integer to Encoded Binary" | | +| MergeOverlappingIntervals | "Merge Overlapping Intervals" | | +| MinimumPathSumInATriangle | "Minimum Path Sum in a Triangle" | | +| Proper2ColoringOfAGraph | "Proper 2-Coloring of a Graph" | | +| SanitizeParenthesesInExpression | "Sanitize Parentheses in Expression" | | +| ShortestPathInAGrid | "Shortest Path in a Grid" | | +| SpiralizeMatrix | "Spiralize Matrix" | | +| SquareRoot | "Square Root" | | +| SubarrayWithMaximumSum | "Subarray with Maximum Sum" | | +| TotalWaysToSum | "Total Ways to Sum" | | +| TotalWaysToSumII | "Total Ways to Sum II" | | +| UniquePathsInAGridI | "Unique Paths in a Grid I" | | +| UniquePathsInAGridII | "Unique Paths in a Grid II" | | + diff --git a/markdown/bitburner.codingcontractobject.md b/markdown/bitburner.codingcontractobject.md new file mode 100644 index 000000000..f512382dd --- /dev/null +++ b/markdown/bitburner.codingcontractobject.md @@ -0,0 +1,21 @@ + + +[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) + diff --git a/markdown/bitburner.codingcontractsignatures.md b/markdown/bitburner.codingcontractsignatures.md new file mode 100644 index 000000000..b2b3f1317 --- /dev/null +++ b/markdown/bitburner.codingcontractsignatures.md @@ -0,0 +1,42 @@ + + +[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) + diff --git a/markdown/bitburner.factionname.md b/markdown/bitburner.factionname.md new file mode 100644 index 000000000..ce9dd245f --- /dev/null +++ b/markdown/bitburner.factionname.md @@ -0,0 +1,55 @@ + + +[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 | "Aevum" | | +| BachmanAssociates | "Bachman & Associates" | | +| BitRunners | "BitRunners" | | +| Bladeburners | "Bladeburners" | | +| BladeIndustries | "Blade Industries" | | +| Chongqing | "Chongqing" | | +| ChurchOfTheMachineGod | "Church of the Machine God" | | +| ClarkeIncorporated | "Clarke Incorporated" | | +| CyberSec | "CyberSec" | | +| Daedalus | "Daedalus" | | +| ECorp | "ECorp" | | +| FourSigma | "Four Sigma" | | +| FulcrumSecretTechnologies | "Fulcrum Secret Technologies" | | +| Illuminati | "Illuminati" | | +| Ishima | "Ishima" | | +| KuaiGongInternational | "KuaiGong International" | | +| MegaCorp | "MegaCorp" | | +| Netburners | "Netburners" | | +| NewTokyo | "New Tokyo" | | +| NiteSec | "NiteSec" | | +| NWO | "NWO" | | +| OmniTekIncorporated | "OmniTek Incorporated" | | +| Sector12 | "Sector-12" | | +| ShadowsOfAnarchy | "Shadows of Anarchy" | | +| Silhouette | "Silhouette" | | +| SlumSnakes | "Slum Snakes" | | +| SpeakersForTheDead | "Speakers for the Dead" | | +| Tetrads | "Tetrads" | | +| TheBlackHand | "The Black Hand" | | +| TheCovenant | "The Covenant" | | +| TheDarkArmy | "The Dark Army" | | +| TheSyndicate | "The Syndicate" | | +| TianDiHui | "Tian Di Hui" | | +| Volhaven | "Volhaven" | | + diff --git a/markdown/bitburner.md b/markdown/bitburner.md index d20a30fd3..db82c7eb9 100644 --- a/markdown/bitburner.md +++ b/markdown/bitburner.md @@ -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) |

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.

| | [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) | | diff --git a/markdown/bitburner.nsenums.md b/markdown/bitburner.nsenums.md index a6d9b58da..ac00c528a 100644 --- a/markdown/bitburner.nsenums.md +++ b/markdown/bitburner.nsenums.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) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index a48dfdd1b..59062fc96 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -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); diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 266541d0c..3814a62f4 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -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; };