Groups multiple placeable variants under a single selectable slot for UI selection. PlaceableSequence allows players to cycle through related building variants (e.g., Basic Tower → Heavy Tower → Rapid Tower) before placing on the grid. Each sequence contains an ordered array of ScenePlacementEntry resources that share a common purpose but have different properties, visuals, or functionality. Key Features:
- Ordered variant collection with left/right cycling in UI
- Automatic arrow button display when 2+ variants exist
- Compatible with PlaceableList and PlaceableSequenceSelectionUI
- Validation delegation to individual ScenePlacementEntry objects Usage Example: [codeblock] var tower_sequence := PlaceableSequence.new() tower_sequence.display_name = "Defense Towers" tower_sequence.placeables = [basic_tower, heavy_tower, rapid_tower] [/codeblock] Integration:
- Use with PlaceableSequenceSelectionUI for tabbed variant selection
- Compatible with existing PlacementSystem placement workflow
- Each variant maintains its own placement rules and validation
Source: addons/grid_placement/placeables/placeable_sequence.gd
Syntax
class PlaceableSequence extends PlacementResourceMembers
| Name | Kind | Summary |
|---|---|---|
display_name | Property | |
placeables | Property | |
icon | Property | |
count | Method | |
get_variant | Method | |
variant_display_name | Method | |
variant_resource | Property | |
display_name | Property | |
get_editor_issues | Method | |
validation_issues | Property | |
current_placeable | Property | |
placeable_validation_issues | Property | |
get_runtime_issues | Method | |
runtime_validation_issues | Property | |
current_placeable | Property | |
comprehensive_placeable_issues | Property |
Source
addons/grid_placement/placeables/placeable_sequence.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs