mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
962 B
962 B
Home > bitburner > Stanek > canPlaceFragment
Stanek.canPlaceFragment() method
Check if fragment can be placed at specified location.
Signature:
canPlaceFragment(rootX: number, rootY: number, rotation: number, fragmentId: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
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. |
Returns:
boolean
true if the fragment can be placed at that position. false otherwise.
Remarks
RAM cost: 0.5 GB