PlacementSession
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
Summary
Session state for placement operations.
This class manages the state of an active placement session, including the selected placeable, current rotation, and targeting information. It is intentionally kept separate from any Godot dependencies.
Metadata
Namespace: GridPlacement.Core.Sessions
Source File: cs/Core/Sessions/PlacementSession.cs
Assembly: GridPlacement.Core
Type: class
Properties
ItemId
Gets the ID of the currently selected item.
SelectedResource
Gets the currently selected placeable resource.
CurrentRotation
Gets or sets the current rotation (0-3, representing 0°, 90°, 180°, 270°).
LastSnapshot
Gets or sets the last targeting snapshot received.
IsActive
Gets whether the session is currently active.
HasValidPlaceable
Gets a value indicating whether the session has a valid placeable selected.
Methods
Start
Starts a new placement session with the specified item and resource.
Parameters
| Name | Description |
|---|---|
itemId | The ID of the item to place. |
resource | The placeable resource. |
Reset
Resets the session to an inactive state.
RotateClockwise
Rotates the placement by 90 degrees clockwise.
Clone
Creates a copy of the current session state.
Returns
A new PlacementSession with the same state.