PlaceableSequence
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 ordered sequence of placeables, typically used as an upgrade path where each tier is a distinct PlaceableEntry.
Metadata
Namespace: GridPlacement.Core.Catalog
Source File: cs/Core/Catalog/PlaceableSequence.cs
Assembly: GridPlacement.Core
Type: class
Constructors
PlaceableSequence
Creates a new placeable sequence.
Parameters
| Name | Description |
|---|---|
id | Unique identifier for this sequence. |
category | Category for filtering. |
tiers | Ordered list of placeable tiers (must have at least one). |
Properties
Id
Unique identifier for this sequence.
Category
Category used when grouping or filtering this sequence alongside other placeables in a catalog (for example, “buildings”).
Tiers
Ordered list of placeable tiers, from base to highest tier. The collection is read-only.
TierCount
Number of tiers in this sequence.
FirstTier
Gets the first tier (base level).
LastTier
Gets the last tier (max upgrade).
Methods
GetTier
Gets the tier at the specified index.
Parameters
| Name | Description |
|---|---|
index | Zero-based tier index. |
Returns
The placeable entry at that tier.
TryGetTier
Tries to get the tier at the specified index.
Parameters
| Name | Description |
|---|---|
index | Zero-based tier index. |
tier | The tier if found, null otherwise. |
Returns
True if the tier exists, false otherwise.