mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [OfficeAPI](./bitburner.officeapi.md) > [setJobAssignment](./bitburner.officeapi.setjobassignment.md)
|
|
|
|
## OfficeAPI.setJobAssignment() method
|
|
|
|
Set the job assignment for a job.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
setJobAssignment(
|
|
divisionName: string,
|
|
city: CityName,
|
|
job: Exclude<CorpEmployeePosition, "Unassigned">,
|
|
amount: number,
|
|
): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| divisionName | string | Name of the division |
|
|
| city | [CityName](./bitburner.cityname.md) | Name of the city |
|
|
| job | Exclude<[CorpEmployeePosition](./bitburner.corpemployeeposition.md)<!-- -->, "Unassigned"> | Name of the job. Passing "Unassigned" will cause this API to not do anything and just return false. |
|
|
| amount | number | Number of employees to assign to that job |
|
|
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
true if the employee count reached the target amount, false if not
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 20 GB
|
|
|