bitburner-src/markdown/bitburner.officeapi.md
Olivier Gagnon 7a89c0a1bb regen doc
2022-10-09 18:46:13 -04:00

2.2 KiB

Home > bitburner > OfficeAPI

OfficeAPI interface

Corporation Office API

Signature:

export interface OfficeAPI 

Remarks

requires the Office API upgrade from your corporation.

Methods

Method Description
assignJob(divisionName, cityName, employeeName, job) Assign an employee to a job.
buyCoffee(divisionName, cityName) Buy coffee for your employees
getEmployee(divisionName, cityName, employeeName) Get data about an employee
getHireAdVertCost(divisionName) Get the cost to Hire AdVert
getHireAdVertCount(adivisionName) Get the number of times you have Hired AdVert
getOffice(divisionName, cityName) Get data about an office
getOfficeSizeUpgradeCost(divisionName, cityName, asize) Cost to Upgrade office size.
getResearchCost(divisionName, researchName) Get the cost to unlock research
hasResearched(divisionName, researchName) Gets if you have unlocked a research
hireAdVert(divisionName) Hire AdVert.
hireEmployee(divisionName, cityName) Hire an employee.
research(divisionName, researchName) Purchase a research
setAutoJobAssignment(divisionName, cityName, job, amount) Set the auto job assignment for a job
throwParty(divisionName, cityName, costPerEmployee) Throw a party for your employees
upgradeOfficeSize(divisionName, cityName, size) Upgrade office size.