mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
fb1f95c26e
See PR #271 description
30 lines
927 B
Markdown
30 lines
927 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [OfficeAPI](./bitburner.officeapi.md) > [setAutoJobAssignment](./bitburner.officeapi.setautojobassignment.md)
|
|
|
|
## OfficeAPI.setAutoJobAssignment() method
|
|
|
|
Set the auto job assignment for a job
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
setAutoJobAssignment(divisionName: string, city: CityName | `${CityName}`, job: string, amount: number): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| divisionName | string | Name of the division |
|
|
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)<!-- -->}\` | Name of the city |
|
|
| job | string | Name of the job |
|
|
| amount | number | Number of employees to assign to that job |
|
|
|
|
<b>Returns:</b>
|
|
|
|
boolean
|
|
|
|
true if the employee count reached the target amount, false if not
|
|
|