Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.68 KB

bitburner.warehouseapi.md

File metadata and controls

40 lines (30 loc) · 2.68 KB

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