manipulation_rotation_workflow_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Manipulation Rotation Workflow Test

Source File: /addons/grid_building/test/integration/manipulation_rotation_workflow_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: manipulatable_settings_all_allowed: [ManipulatableSettings](./manipulatable-settings/) = load("res://addons/grid_building/test/resources/settings/manipulatable/manipulatable_settings_all_allowed.tres") - Manipulatable settings allowing all operations
  • Property: runner: GdUnitSceneRunner
  • Property: test_environment: [AllSystemsTestEnvironment](./all-systems-test-environment/)

Private Properties

  • Property: _container: [GBCompositionContainer](./gb-composition-container/) (private)
  • Property: _manipulation_system: [ManipulationSystem](./manipulation-system/) (private)
  • Property: _manipulation_state: [ManipulationState](./manipulation-state/) (private)
  • Property: _indicator_manager: [IndicatorManager](./indicator-manager/) (private)

Constants

  • Constant: ManipulationSystem = preload('res://addons/grid_building/systems/manipulation/manipulation_system.gd')
  • Constant: TEST_POSITION: Vector2 = Vector2(128, 128) - Test position for placing objects (tile center, away from edges)

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

setup_targeting_state

1
setup_targeting_state() -> void

Sets up targeting state with default target (required for manipulation)


after_test

1
after_test() -> void

after

1
after() -> void

create_test_manipulatable

1
create_test_manipulatable() -> Manipulatable

Creates a manipulatable with collision shapes for indicator generation CRITICAL: Collision shapes are REQUIRED for indicator generation during placement


start_manipulation

1
start_manipulation(manipulatable: Manipulatable) -> bool

Starts manipulation (pickup) - returns true if successful


rotate_manipulation

1
rotate_manipulation(degrees: float) -> bool

Rotates the manipulation using system method (correct approach)


place_manipulated_object

1
place_manipulated_object() -> bool

Places the manipulated object - returns true if successful


test_manipulation_workflow_succeeds_after_rotation

1
test_manipulation_workflow_succeeds_after_rotation() -> void

test_multiple_rotations_maintain_workflow

1
test_multiple_rotations_maintain_workflow() -> void

test_rotate_then_flip_workflow

1
test_rotate_then_flip_workflow() -> void


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