IPlacementCommands

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public interface IPlacementCommands

Summary

High-level placement commands surface for GridBuilding. Engine-agnostic entry points that describe “what” to do, using UserId to indicate who is issuing the command.

Metadata

Namespace: GridPlacement.Core.Interfaces

Source File: cs/Core/Interfaces/IPlacementCommands.cs

Assembly: GridPlacement.Core

Type: interface

Methods

TryPlace

1
2
3
4
5
PlacementResult TryPlace(
    GPUserId userId,
    Placeable placeable,
    CoreVector2 worldPosition
)

Attempts to place a placeable at the given world position for the specified user.

Parameters

NameDescription
userIdUser issuing the command.
placeablePlaceable definition to place.
worldPositionWorld-space position for placement.

Returns

PlacementResult describing success and details.


TryDemolish

1
2
3
4
PlacementResult TryDemolish(
    GPUserId userId,
    CoreVector2 worldPosition
)

Attempts to demolish a building/object at the given world position for the specified user.

Parameters

NameDescription
userIdUser issuing the command.
worldPositionWorld-space position to demolish at.

Returns

PlacementResult describing success and details.