Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Add a way to get the list of all factions #1457

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions markdown/bitburner.factionname.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [FactionName](./bitburner.factionname.md)

## FactionName enum

Names of all factions

**Signature:**

```typescript
declare enum FactionName
```

## Enumeration Members

| Member | Value | Description |
| --- | --- | --- |
| Aevum | <code>&quot;Aevum&quot;</code> | |
| BachmanAssociates | <code>&quot;Bachman &amp; Associates&quot;</code> | |
| BitRunners | <code>&quot;BitRunners&quot;</code> | |
| Bladeburners | <code>&quot;Bladeburners&quot;</code> | |
| BladeIndustries | <code>&quot;Blade Industries&quot;</code> | |
| Chongqing | <code>&quot;Chongqing&quot;</code> | |
| ChurchOfTheMachineGod | <code>&quot;Church of the Machine God&quot;</code> | |
| ClarkeIncorporated | <code>&quot;Clarke Incorporated&quot;</code> | |
| CyberSec | <code>&quot;CyberSec&quot;</code> | |
| Daedalus | <code>&quot;Daedalus&quot;</code> | |
| ECorp | <code>&quot;ECorp&quot;</code> | |
| FourSigma | <code>&quot;Four Sigma&quot;</code> | |
| FulcrumSecretTechnologies | <code>&quot;Fulcrum Secret Technologies&quot;</code> | |
| Illuminati | <code>&quot;Illuminati&quot;</code> | |
| Ishima | <code>&quot;Ishima&quot;</code> | |
| KuaiGongInternational | <code>&quot;KuaiGong International&quot;</code> | |
| MegaCorp | <code>&quot;MegaCorp&quot;</code> | |
| Netburners | <code>&quot;Netburners&quot;</code> | |
| NewTokyo | <code>&quot;New Tokyo&quot;</code> | |
| NiteSec | <code>&quot;NiteSec&quot;</code> | |
| NWO | <code>&quot;NWO&quot;</code> | |
| OmniTekIncorporated | <code>&quot;OmniTek Incorporated&quot;</code> | |
| Sector12 | <code>&quot;Sector-12&quot;</code> | |
| ShadowsOfAnarchy | <code>&quot;Shadows of Anarchy&quot;</code> | |
| Silhouette | <code>&quot;Silhouette&quot;</code> | |
| SlumSnakes | <code>&quot;Slum Snakes&quot;</code> | |
| SpeakersForTheDead | <code>&quot;Speakers for the Dead&quot;</code> | |
| Tetrads | <code>&quot;Tetrads&quot;</code> | |
| TheBlackHand | <code>&quot;The Black Hand&quot;</code> | |
| TheCovenant | <code>&quot;The Covenant&quot;</code> | |
| TheDarkArmy | <code>&quot;The Dark Army&quot;</code> | |
| TheSyndicate | <code>&quot;The Syndicate&quot;</code> | |
| TianDiHui | <code>&quot;Tian Di Hui&quot;</code> | |
| Volhaven | <code>&quot;Volhaven&quot;</code> | |

1 change: 1 addition & 0 deletions markdown/bitburner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
| [CityName](./bitburner.cityname.md) | Names of all cities |
| [CompanyName](./bitburner.companyname.md) | Names of all companies |
| [CrimeType](./bitburner.crimetype.md) | |
| [FactionName](./bitburner.factionname.md) | Names of all factions |
| [FactionWorkType](./bitburner.factionworktype.md) | |
| [GymType](./bitburner.gymtype.md) | |
| [JobField](./bitburner.jobfield.md) | |
Expand Down
3 changes: 2 additions & 1 deletion markdown/bitburner.nsenums.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type NSEnums = {
ToastVariant: typeof ToastVariant;
UniversityClassType: typeof UniversityClassType;
CompanyName: typeof CompanyName;
FactionName: typeof FactionName;
};
```
**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)

2 changes: 2 additions & 0 deletions src/NetscriptFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
ToastVariant,
UniversityClassType,
CompanyName,
FactionName,
} from "@enums";
import { PromptEvent } from "./ui/React/PromptManager";
import { GetServer, DeleteServer, AddToAllServers, createUniqueRandomIp } from "./Server/AllServers";
Expand Down Expand Up @@ -123,6 +124,7 @@ export const enums: NSEnums = {
ToastVariant,
UniversityClassType,
CompanyName,
FactionName,
};
for (const val of Object.values(enums)) Object.freeze(val);
Object.freeze(enums);
Expand Down
40 changes: 40 additions & 0 deletions src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7857,6 +7857,45 @@ declare enum CompanyName {
NoodleBar = "Noodle Bar",
}

/** Names of all factions
* @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",
}

/** @public */
export type NSEnums = {
CityName: typeof CityName;
Expand All @@ -7869,6 +7908,7 @@ export type NSEnums = {
ToastVariant: typeof ToastVariant;
UniversityClassType: typeof UniversityClassType;
CompanyName: typeof CompanyName;
FactionName: typeof FactionName;
};

/**
Expand Down
Loading