indicator_rule_assignment_regression_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Test for RuleCheckIndicator rule assignment regression Verifies that indicators properly evaluate rules and filter out indicators at positions that should fail collision checks

Source File: /addons/grid_building/test/rules/assignment/indicator_rule_assignment_regression_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: runner: GdUnitSceneRunner
  • Property: obj_parent: Node2D
  • Property: building_system: [BuildingSystem](./building-system/)
  • Property: targeting_system: [GridTargetingSystem](./grid-targeting-system/)
  • Property: indicator_manager: [IndicatorManager](./indicator-manager/)
  • Property: positioner: Node2D
  • Property: map_layer: TileMapLayer
  • Property: placer: Node2D

Private Properties

  • Property: _env: [BuildingTestEnvironment](./building-test-environment/) (private)
  • Property: _container: [GBCompositionContainer](./gb-composition-container/) (private)
  • Property: _state: [GridTargetingState](./grid-targeting-state/) (private)

Constants

  • Constant: GBTestConstants := preload("res://addons/grid_building/test/scenes/env/gb_test_constants.gd")
  • Constant: TILE_SIZE: Vector2 = GBTestConstants.DEFAULT_TILE_SIZE
  • Constant: DEFAULT_POSITION: Vector2 = GBTestConstants.CENTER
  • Constant: ORIGIN_POSITION: Vector2 = GBTestConstants.OFF_GRID
  • Constant: ORIGIN_TILE: Vector2i = Vector2i(0, 0)

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

after_test

1
after_test() -> void

after

1
after() -> void

find_center_indicator

1
find_center_indicator(indicators: Array[RuleCheckIndicator]) -> RuleCheckIndicator

create_collision_object_at

1
create_collision_object_at(position: Vector2) -> StaticBody2D

test_polygon_test_object_indicator_collision_filtering

1
test_polygon_test_object_indicator_collision_filtering() -> void

Test that indicators properly evaluate rules and filter out indicators at positions that should fail collision checks


test_indicator_rule_assignment_during_creation

1
test_indicator_rule_assignment_during_creation() -> void

Test that rules are properly assigned to indicators during creation


test_indicator_rule_validation

1
test_indicator_rule_validation() -> void

Test that indicators properly validate rules when updated


test_polygon_test_object_center_tile_filtering

1
test_polygon_test_object_center_tile_filtering() -> void

Test the specific polygon_test_object scenario



Grid Building v5.0.8 | Generated 24/05/2026