API: Add API break utilities, and add an API break for bladeburner.getCurrentAction (#1248)

This commit is contained in:
Snarling
2024-05-14 19:24:03 -04:00
committed by GitHub
parent 9dc3b22919
commit 574c284321
6 changed files with 131 additions and 12 deletions

View File

@@ -9,17 +9,15 @@ Get current action.
**Signature:**
```typescript
getCurrentAction(): BladeburnerCurAction;
getCurrentAction(): BladeburnerCurAction | null;
```
**Returns:**
[BladeburnerCurAction](./bitburner.bladeburnercuraction.md)
[BladeburnerCurAction](./bitburner.bladeburnercuraction.md) \| null
Object that represents the players current Bladeburner action.
Object that represents the players current Bladeburner action, or null if no action is being performed.
## Remarks
RAM cost: 1 GB
Returns an object that represents the players current Bladeburner action. If the player is not performing an action, the function will return an object with the type property set to “Idle”.