mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [applyToCompany](./bitburner.singularity.applytocompany.md)
|
||
|
||
## Singularity.applyToCompany() method
|
||
|
||
If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function and the RAM cost is doubled.
|
||
|
||
This function will automatically try to apply to the specified company for a position in the specified field. This function can also be used to apply for promotions by specifying the company and field you are already employed at.
|
||
|
||
This function will return true if you successfully get a job/promotion, and false otherwise. Note that if you are trying to use this function to apply for a promotion and you don’t get one, it will return false.
|
||
|
||
<b>Signature:</b>
|
||
|
||
```typescript
|
||
applyToCompany(companyName: CompanyName, field: CompanyField): boolean;
|
||
```
|
||
|
||
## Parameters
|
||
|
||
| Parameter | Type | Description |
|
||
| --- | --- | --- |
|
||
| companyName | [CompanyName](./bitburner.companyname.md) | Name of company to apply to. |
|
||
| field | [CompanyField](./bitburner.companyfield.md) | Field to which you want to apply. |
|
||
|
||
<b>Returns:</b>
|
||
|
||
boolean
|
||
|
||
True if the player successfully get a job/promotion, and false otherwise.
|
||
|
||
## Remarks
|
||
|
||
3 GB Level 2
|
||
|