2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [OfficeAPI](./bitburner.officeapi.md)
|
|
|
|
|
|
|
|
## OfficeAPI interface
|
|
|
|
|
|
|
|
Corporation Office API
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
export interface OfficeAPI
|
|
|
|
```
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2024-08-16 11:02:23 +02:00
|
|
|
Requires the Office API upgrade from your corporation.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
| Method | Description |
|
|
|
|
| --- | --- |
|
2024-08-16 11:02:23 +02:00
|
|
|
| [buyTea(divisionName, city)](./bitburner.officeapi.buytea.md) | Buy tea for your employees. |
|
2022-12-30 02:28:53 +01:00
|
|
|
| [getHireAdVertCost(divisionName)](./bitburner.officeapi.gethireadvertcost.md) | Get the cost to hire AdVert. |
|
|
|
|
| [getHireAdVertCount(divisionName)](./bitburner.officeapi.gethireadvertcount.md) | Get the number of times you have hired AdVert. |
|
2024-08-16 11:02:23 +02:00
|
|
|
| [getOffice(divisionName, city)](./bitburner.officeapi.getoffice.md) | Get data about an office. |
|
|
|
|
| [getOfficeSizeUpgradeCost(divisionName, city, size)](./bitburner.officeapi.getofficesizeupgradecost.md) | Get the cost to upgrade an office. |
|
|
|
|
| [getResearchCost(divisionName, researchName)](./bitburner.officeapi.getresearchcost.md) | Get the cost to unlock a research. |
|
|
|
|
| [hasResearched(divisionName, researchName)](./bitburner.officeapi.hasresearched.md) | Check if you unlocked a research. |
|
2022-10-21 17:16:00 +02:00
|
|
|
| [hireAdVert(divisionName)](./bitburner.officeapi.hireadvert.md) | Hire AdVert. |
|
2022-12-30 02:28:53 +01:00
|
|
|
| [hireEmployee(divisionName, city, employeePosition)](./bitburner.officeapi.hireemployee.md) | Hire an employee. |
|
2024-08-16 11:02:23 +02:00
|
|
|
| [research(divisionName, researchName)](./bitburner.officeapi.research.md) | Purchase a research. |
|
|
|
|
| [setAutoJobAssignment(divisionName, city, job, amount)](./bitburner.officeapi.setautojobassignment.md) | Set the job assignment for a job. |
|
|
|
|
| [throwParty(divisionName, city, costPerEmployee)](./bitburner.officeapi.throwparty.md) | Throw a party for your employees. |
|
2022-12-30 02:28:53 +01:00
|
|
|
| [upgradeOfficeSize(divisionName, city, size)](./bitburner.officeapi.upgradeofficesize.md) | Upgrade office size. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|