mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 15:12:27 +01:00
fb1f95c26e
See PR #271 description
28 lines
717 B
Markdown
28 lines
717 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [WarehouseAPI](./bitburner.warehouseapi.md) > [hasWarehouse](./bitburner.warehouseapi.haswarehouse.md)
|
|
|
|
## WarehouseAPI.hasWarehouse() method
|
|
|
|
Check if you have a warehouse in city
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
hasWarehouse(divisionName: string, city: CityName | `${CityName}`): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| divisionName | string | |
|
|
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)<!-- -->}\` | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
boolean
|
|
|
|
true if warehouse is present, false if not
|
|
|