Building Socket
You can find all the information about Building Socket here.
API
using EasyBuildSystem.Features.Runtime.Buildings.Socket;Methods
/// <summary>
/// Get the snapping point settings that can fit the specified Building Part.
/// </summary>
/// <param name="part">The Building Part to check for snapping points.</param>
/// <returns>The snapping point settings that can fit the Building Part.</returns>
SnappingPointSettings snapSettings = GetOffset(BuildingPart part);
/// <summary>
/// Snap a preview to a specified snapping point settings with an offset rotation.
/// </summary>
/// <param name="buildingPart">The Building Part to be snapped.</param>
/// <param name="offsetSettings">The snapping point settings to snap to.</param>
/// <param name="offsetRotation">The offset rotation to apply to the snapped Building Part.</param>
/// <returns>True if the snap operation is successful, false otherwise.</returns>
Snap(BuildingPart buildingPart, SnappingPointSettings offsetSettings, Vector3 offsetRotation);
/// <summary>
/// Check if this Building Part can fit with the specified Building Part.
/// </summary>
/// <param name="buildingPart">The Building Part to check for fit.</param>
/// <returns>True if the Building Part can fit, false otherwise.</returns>
bool canFit = IsFitting(BuildingPart buildingPart);
/// <summary>
/// Check if the socket is busy with the specified Building Part.
/// </summary>
/// <param name="part">The Building Part to check for occupancy.</param>
/// <returns>True if the socket is busy, false otherwise.</returns>.
bool isBusy = IsBusy(BuildingPart buildingPart);Last updated