valid_placement_tile_rule_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/placement/workflows/valid_placement_tile_rule_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: rule: [ValidPlacementTileRule](./valid-placement-tile-rule/)
  • Property: no_setup_indicator: [RuleCheckIndicator](./rule-check-indicator/)
  • Property: valid_indicator: [RuleCheckIndicator](./rule-check-indicator/)
  • Property: map_layer: TileMapLayer
  • Property: tile_data_extra: TileData
  • Property: tile_data_partial_match: TileData
  • Property: tile_data_missing_key: TileData
  • Property: tile_data_full_match: TileData
  • Property: tile_data_none: TileData
  • Property: runner: GdUnitSceneRunner

Private Properties

  • Property: _env: [AllSystemsTestEnvironment](./all-systems-test-environment/) (private)
  • Property: _container: [GBCompositionContainer](./gb-composition-container/) = preload("res://addons/grid_building/test/resources/composition_containers/test_composition_container.tres") (private)
  • Property: _gts: [GridTargetingState](./grid-targeting-state/) (private)

Constants

  • Constant: TILE_SOURCE_ID := 0

    Tests for ValidPlacementTileRule class functionality. Validates tile data matching against expected custom data requirements, ensuring placement rules correctly identify valid and invalid tile configurations.

  • Constant: TILE_COORD_FULL_MATCH := Vector2i(0, 0)

  • Constant: TILE_COORD_PARTIAL_MATCH := Vector2i(0, 1)

  • Constant: TILE_COORD_MISSING_KEY := Vector2i(0, 2)

  • Constant: TILE_COORD_NONE := Vector2i(0, 3)

  • Constant: TILE_COORD_EXTRA := Vector2i(0, 4)

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

after

1
after() -> void

test_does_tile_have_valid_data

1
2
3
4
5
test_does_tile_have_valid_data(
    p_indicator: RuleCheckIndicator,
    p_expected: bool,
    _test_parameters := [[null, false], [no_setup_indicator, true], [valid_indicator, true]]
) -> void

create_tile_data

1
2
3
4
create_tile_data(
    coords: Vector2i,
    custom_data: Dictionary
) -> TileData


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