UnifiedTestFactory

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/factories/unified_test_factory.gd

Extends: RefCounted

Constants

  • Constant: GodotTestFactory = preload("res://addons/grid_building/test/factories/godot_test_factory.gd")

    Unified Test Factory - Convenience Facade for Test Creation

    ⚠️ DEPRECATED: This factory is being phased out in favor of specific factory classes. Use EnvironmentTestFactory, PlaceableTestFactory, PlacementRuleTestFactory, etc. directly. Preload dependencies for safe class resolution

  • Constant: ManipulationSystem = preload("res://addons/grid_building/systems/manipulation/manipulation_system.gd")

Public Methods

validate_environment_setup

1
2
3
4
validate_environment_setup(
    env: AllSystemsTestEnvironment,
    context: String = "Test environment"
) -> bool

Flags: static

Delegate: Validate environment setup @deprecated: Use EnvironmentTestFactory.validate_environment_setup() directly


create_collision_rule_with_settings

1
2
3
4
5
create_collision_rule_with_settings(
    apply_mask: int,
    collision_mask: int,
    pass_on_collision: bool = true
) -> CollisionsCheckRule

Flags: static

Delegate: Create collision rule with settings @deprecated: Use PlacementRuleTestFactory.create_collision_rule_with_settings() directly


create_standard_placement_rules

1
create_standard_placement_rules(include_tile_rule: bool = true) -> Array[PlacementRule]

Flags: static

Delegate: Create standard placement rules array @deprecated: Use PlacementRuleTestFactory.create_standard_placement_rules() directly


create_test_collisions_check_rule

1
create_test_collisions_check_rule() -> CollisionsCheckRule

Flags: static

Delegate: Create default collisions check rule @deprecated: Use PlacementRuleTestFactory.create_default_collision_rule() directly


prepare_targeting_state_ready

1
2
3
4
prepare_targeting_state_ready(
    test: GdUnitTestSuite,
    container: GBCompositionContainer
) -> Dictionary

Flags: static

Delegate: Prepare targeting state ready @deprecated: Use specific factory methods for targeting state setup


create_test_composition_container

1
create_test_composition_container(_test: GdUnitTestSuite) -> GBCompositionContainer

Flags: static

Delegate: Create test composition container @deprecated: Use GBCompositionContainer.new() directly or specific factory methods


create_owner_context

1
create_owner_context(_test: GdUnitTestSuite) -> GBOwnerContext

Flags: static

Delegate: Create owner context @deprecated: Use GBOwnerContext.new() directly or specific factory methods


create_indicator_manager

1
create_indicator_manager(test: GdUnitTestSuite) -> IndicatorManager

Flags: static

Delegate: Create indicator manager @deprecated: Use IndicatorManager.new() directly or specific factory methods


create_test_injector

1
2
3
4
create_test_injector(
    test: GdUnitTestSuite,
    container: GBCompositionContainer
) -> GBInjectorSystem

Flags: static

Delegate: Create test injector with container @deprecated: Use GBInjectorSystem.new() directly or specific factory methods


create_test_static_body_with_rect_shape

1
create_test_static_body_with_rect_shape(test: GdUnitTestSuite) -> StaticBody2D

Flags: static

Delegate: Create test static body with rect shape @deprecated: Use GodotTestFactory.create_static_body_with_rect_shape() directly


create_polygon_test_setup

1
create_polygon_test_setup(test_instance: Node) -> Dictionary

Flags: static

Delegate: Create polygon test setup @deprecated: Use PlaceableTestFactory.create_polygon_test_setup() directly


create_test_rule_check_indicator

1
create_test_rule_check_indicator(test_instance: Node) -> RuleCheckIndicator

Flags: static

Delegate: Create test rule check indicator @deprecated: Use RuleCheckIndicator.new() directly or specific factory methods


create_test_rule_check_indicator_with_shape

1
2
3
4
create_test_rule_check_indicator_with_shape(
    test_instance: Node,
    shape: Shape2D
) -> RuleCheckIndicator

Flags: static

Delegate: Create test rule check indicator with shape @deprecated: Use RuleCheckIndicator.new() directly or specific factory methods


ensure_indicator_template_configured

1
ensure_indicator_template_configured(_indicator_manager: IndicatorManager) -> void

Flags: static

Delegate: Ensure indicator template configured @deprecated: Indicator template configuration is handled by specific factory methods


create_complete_building_test_setup

1
create_complete_building_test_setup(_test_instance: Node) -> Dictionary

Flags: static


create_manipulation_system

1
create_manipulation_system(test_instance: Node) -> ManipulationSystem

Flags: static

Delegate: Create manipulation system @deprecated: Use specific factory methods for manipulation system creation


create_grid_positioner

1
create_grid_positioner(_test: GdUnitTestSuite) -> GridPositioner2D

Flags: static

Delegate: Create grid positioner @deprecated: Use GridPositioner2D.new() directly with proper shape assignment


create_tile_map_layer

1
2
3
4
create_tile_map_layer(
    test: GdUnitTestSuite,
    _p_parent : Node = null
) -> TileMapLayer

Flags: static

Delegate: Create tile map layer parented to p_parent @deprecated: Use TileMapLayer.new() directly or specific factory methods DEPRECATED: legacy helper Use GBTestConstants.TEST_TILE_MAP_LAYER_BUILDABLE or specific factory methods instead. This method currently returns the canonical premade 31x31 test tilemap to ensure consistent bounds and data across all tests. It preserves the old API for backward compatibility but will be removed in a future refactor.


assert_placement_report_success

1
2
3
4
assert_placement_report_success(
    _test: GdUnitTestSuite,
    report: PlacementReport
) -> void

Flags: static

Delegate: Assert placement report success @deprecated: Use direct assertion methods instead of factory assertions


create_test_collision_rule

1
create_test_collision_rule() -> CollisionsCheckRule

Flags: static

Delegate: Create test collision rule @deprecated: Use PlacementRuleTestFactory.create_collision_rule_with_settings() directly


assert_system_dependencies_valid

1
2
3
4
assert_system_dependencies_valid(
    _test: GdUnitTestSuite,
    system: Object
) -> void

Flags: static

Delegate: Assert system dependencies valid



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