IndicatorModel
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
Represents an indicator model for placement validation.
This class contains the visual data needed to show placement indicators (valid/invalid tiles, collision areas, etc.).
Metadata
Namespace: GridPlacement.Core.Types
Source File: cs/Core/Types/PreviewModel.cs
Assembly: GridPlacement.Core
Type: class
Constructors
IndicatorModel
Initializes a new instance of the IndicatorModel class.
Properties
IsVisible
Gets or sets whether the indicators should be visible.
ValidPositions
Gets or sets the list of valid indicator positions.
InvalidPositions
Gets or sets the list of invalid indicator positions.
ValidColor
Gets or sets the indicator color for valid positions.
InvalidColor
Gets or sets the indicator color for invalid positions.
Methods
Visible
Creates a visible indicator model with the specified positions.
Parameters
| Name | Description |
|---|---|
validPositions | The valid positions. |
invalidPositions | The invalid positions. |
validColor | The color for valid indicators. |
invalidColor | The color for invalid indicators. |
Returns
A new IndicatorModel instance.
Hidden
Creates a hidden indicator model.
Returns
A new hidden IndicatorModel instance.