Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
IndicatorSetupUtils
- Static utility functions for indicator setup operations. This class provides static utility functions for complex indicator setup logic that has been extracted from IndicatorService2D for better testability. All functions are static and do not depend on instance state, making them suitable for unit testing. Key Features:
- Static functions for collision test setup building
- Testing indicator creation and management
- Indicator count calculation without side effects
- Tile-based positioning using tile map layers
Source: addons/grid_placement/placement/manager/components/indicator_setup_utils.gd
Syntax
class IndicatorSetupUtils extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
create_testing_indicator | Method | |
testing_indicator | Property | |
calculate_indicator_count | Method | |
owner_shapes | Property | |
indicator_test_setups | Property | |
setups_array | Property | |
testing_indicator | Property | |
position_rules_map | Property | |
setup_collision_mapper | Method | |
gather_collision_shapes | Method | |
build_collision_test_setups | Method | |
result | Property | |
setup | Property | |
build_collision_test_setups_with_factory | Method | |
extract_valid_test_setups | Method | |
valid_setups | Property | |
map_positions_to_rules | Method | |
execute_indicator_setup | Method | |
result | Property | |
validation_issues | Property | |
owner_shapes | Property | |
should_free_testing_indicator | Property | |
test_setups | Property | |
setups_array | Property | |
position_rules_map | Property | |
normalized_map | Property | |
map_layer | Property | |
positioner_tile | Property | |
rel_off | Property | |
indicators | Property | |
validate_indicator_positions | Method | |
result | Property | |
indicator | Property | |
expected_tile_pos | Property | |
actual_tile_pos | Property | |
validate_setup_preconditions | Method | |
issues | Property | |
indicators | Property | Result class for indicator setup operations |
owner_shapes | Property | |
position_rules_map | Property | |
test_setups | Property | |
issues | Property | |
has_issues | Method | |
is_successful | Method | |
is_valid | Property | Result class for position validation operations |
size_mismatch | Property | |
expected_count | Property | |
actual_count | Property | |
position_mismatches | Property | |
get_mismatch_summary | Method |
Source
addons/grid_placement/placement/manager/components/indicator_setup_utils.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs