rotation_reset_on_placeable_switch_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Test: Total preview rotation/scale resets to identity when switching placeables
Source File: /addons/grid_building/test/placement/unit/rotation_reset_on_placeable_switch_test.gd
Extends: GdUnitTestSuite
Properties
- Property:
runner: GdUnitSceneRunner - Property:
env: [BuildingTestEnvironment](./building-test-environment/) - Property:
building_state: [BuildingState](./building-state/)
Constants
- Constant:
PLACEABLE_A: [Placeable](./placeable/) = GBTestConstants.PLACEABLE_SMITHY - Constant:
PLACEABLE_B: [Placeable](./placeable/) = GBTestConstants.PLACEABLE_TRAPEZOID - Constant:
ROTATION_STEP: float = 90.0
Public Methods
before
before_test
after_test
after
test_rotation_resets_on_single_switch
1
| test_rotation_resets_on_single_switch() -> void
|
test_rotation_resets_after_accumulated_rotations
1
| test_rotation_resets_after_accumulated_rotations() -> void
|
test_scale_resets_after_flip_then_switch
1
| test_scale_resets_after_flip_then_switch() -> void
|
test_sequential_switches_each_start_at_identity
1
| test_sequential_switches_each_start_at_identity() -> void
|
Private Methods
_reset
Flags: private
_enter_build
1
| _enter_build(placeable: Placeable) -> PlacementReport
|
Flags: private
_get_preview
1
| _get_preview() -> Node2D
|
Flags: private
1
| _assert_identity_transform(context: String) -> void
|
Flags: private
Grid Building v5.0.8 | Generated 24/05/2026