bitburner-src/markdown/bitburner.stanek.canplace.md
Olivier Gagnon 3c27893aa3 v1.1.0
2021-12-03 16:14:13 -05:00

972 B

Home > bitburner > Stanek > canPlace

Stanek.canPlace() method

Check if fragment can be placed at specified location.

Signature:

canPlace(rootX: number, rootY: number, rotation: number, fragmentId: number): boolean;

Parameters

Parameter Type Description
rootX number rootX Root X against which to align the top left of the fragment.
rootY number rootY Root Y against which to align the top left of the fragment.
rotation number rotation A number from 0 to 3, the mount of 90 degree turn to take.
fragmentId number fragmentId ID of the fragment to place.

Returns:

boolean

true if the fragment can be placed at that position. false otherwise.

Remarks

RAM cost: cost: 0.5 GB