mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
33 lines
815 B
Markdown
33 lines
815 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Bladeburner](./bitburner.bladeburner.md) > [switchCity](./bitburner.bladeburner.switchcity.md)
|
|
|
|
## Bladeburner.switchCity() method
|
|
|
|
Travel to another city in bladeburner.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
switchCity(city: CityName | `${CityName}`): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)<!-- -->}\` | Name of city. Case-sensitive |
|
|
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
true if successful, and false otherwise
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 4 GB Attempts to switch to the specified city (for Bladeburner only).
|
|
|
|
Returns true if successful, and false otherwise
|
|
|