bitburner-src/markdown/bitburner.warehouseapi.md
Olivier Gagnon c915cd06d8 corp doc
2021-12-08 20:03:22 -05:00

2.7 KiB

Home > bitburner > WarehouseAPI

WarehouseAPI interface

Corporation Warehouse API

Signature:

export interface WarehouseAPI 

Remarks

Requires the Warehouse API upgrade from your corporation.

Methods

Method Description
buyMaterial(divisionName, cityName, materialName, amt) Set material buy data
cancelExportMaterial(sourceDivision, sourceCity, targetDivision, targetCity, materialName, amt) Cancel material export
discontinueProduct(divisionName, productName) Discontinue a product.
exportMaterial(sourceDivision, sourceCity, targetDivision, targetCity, materialName, amt) Set material export data
getMaterial(divisionName, cityName, materialName) Get material data
getProduct(divisionName, productName) Get product data
getWarehouse(divisionName, cityName) Get warehouse data
makeProduct(divisionName, cityName, productName, designInvest, marketingInvest) Create a new product
purchaseWarehouse(divisionName, cityName) Purchase warehouse for a new city
sellMaterial(divisionName, cityName, materialName, amt, price) Set material sell data.
sellProduct(divisionName, cityName, productName, amt, price, all) Set product sell data.
setMaterialMarketTA1(divisionName, cityName, materialName, on) Set market TA 1 for a material.
setMaterialMarketTA2(divisionName, cityName, materialName, on) Set market TA 2 for a material.
setProductMarketTA1(divisionName, productName, on) Set market TA 1 for a product.
setProductMarketTA2(divisionName, productName, on) Set market TA 2 for a product.
setSmartSupply(divisionName, cityName, enabled) Set smart supply
upgradeWarehouse(divisionName, cityName) Upgrade warehouse