mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-24 00:23:49 +01:00
32 lines
772 B
Markdown
32 lines
772 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Stanek](./bitburner.stanek.md) > [getFragment](./bitburner.stanek.getfragment.md)
|
|
|
|
## Stanek.getFragment() method
|
|
|
|
Get placed fragment at location.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getFragment(rootX: number, rootY: number): ActiveFragment | undefined;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| rootX | number | X against which to align the top left of the fragment. |
|
|
| rootY | number | Y against which to align the top left of the fragment. |
|
|
|
|
**Returns:**
|
|
|
|
[ActiveFragment](./bitburner.activefragment.md) \| undefined
|
|
|
|
The fragment at \[rootX, rootY\], if any.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 5 GB
|
|
|