tilemap_transform_offset_unit_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/collision/detection/tilemap_transform_offset_unit_test.gd

Extends: GdUnitTestSuite

Constants

  • Constant: TILE_SIZE := Vector2(16, 16)

Public Methods

before_test

1
before_test() -> void

test_tilemap_offset_affects_tile_overlap

1
test_tilemap_offset_affects_tile_overlap() -> void

Private Methods

_get_missing_expected_tiles

1
2
3
4
_get_missing_expected_tiles(
    expected: Array[Vector2i],
    offsets_set: Dictionary
) -> Array[Vector2i]

Flags: private

Helper - returns an Array[Vector2i] of expected tiles not present in the offsets_set


_format_diagnostic

1
2
3
4
5
6
7
8
_format_diagnostic(
    expected: Array[Vector2i],
    offsets: Array[Vector2i],
    missing: Array[Vector2i],
    map_layer: TileMapLayer,
    world_center: Vector2,
    center_tile: Vector2i
) -> String

Flags: private

Helper - format a verbose diagnostic message for failures



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