Factory utilities for creating and normalizing PlaceableSequence collections. This factory implements the "Helper Factory (Suggested)" pattern mentioned in the UI PlaceableSequence guide documentation. It provides convenient methods for:
- Converting individual Placeables into single-item sequences
- Normalizing mixed arrays of Placeables and PlaceableSequences
- Reducing UI wiring code when working with PlaceableList components Usage Context: These utilities are designed for cases where you have existing ScenePlacementEntry collections but need to use them with PlaceableSequenceSelectionUI or PlaceableList components that expect PlaceableSequence objects. Note: Currently not used in the main plugin demos, but provided as convenience utilities for game developers who need sequence normalization.
Source: addons/grid_placement/placeables/placeable_sequence_factory.gd
Syntax
class PlaceableSequenceFactory extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
from_placeables | Method | |
converted_sequences | Property | |
single_item_sequence | Property | |
ensure_sequences | Method | |
normalized_sequences | Property | |
wrapper_sequence | Property |