2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Stanek](./bitburner.stanek.md) > [canPlaceFragment](./bitburner.stanek.canplacefragment.md)
|
|
|
|
|
|
|
|
## Stanek.canPlaceFragment() method
|
|
|
|
|
|
|
|
Check if fragment can be placed at specified location.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
canPlaceFragment(rootX: number, rootY: number, rotation: number, fragmentId: number): boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2023-10-03 02:14:44 +02:00
|
|
|
| rootX | number | Root X against which to align the top left of the fragment. |
|
|
|
|
| rootY | number | Root Y against which to align the top left of the fragment. |
|
|
|
|
| rotation | number | A number from 0 to 3, the amount of 90-degree turns to take. |
|
|
|
|
| fragmentId | number | ID of the fragment to place. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
true if the fragment can be placed at that position. false otherwise.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0.5 GB
|
|
|
|
|