mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
cacecda72f
* API: Add types for parameters of gym-university-bladeburner API * Fix merging error
39 lines
1.4 KiB
Markdown
39 lines
1.4 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Bladeburner](./bitburner.bladeburner.md) > [getTeamSize](./bitburner.bladeburner.getteamsize.md)
|
|
|
|
## Bladeburner.getTeamSize() method
|
|
|
|
Get team size.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getTeamSize(
|
|
type?: BladeburnerActionType | `${BladeburnerActionType}`,
|
|
name?: BladeburnerActionName | `${BladeburnerActionName}`,
|
|
): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | _(Optional)_ Type of action. |
|
|
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | _(Optional)_ Name of action. Must be an exact match. |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
Number of Bladeburner team members that were assigned to the specified action.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 4 GB
|
|
|
|
Returns the number of available Bladeburner team members. You can also pass the type and name of an action to get the number of Bladeburner team members you have assigned to the specified action.
|
|
|
|
Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.
|
|
|