Grid Placement
Development ⚠️ GridPlacement 6.0 (GECS) is in active development. This is the GDScript ECS architecture.

PlacementPreviewSystem

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/placement/placement_preview_system.gd

Version: 6.0

class_name: PlacementPreviewSystem extends: System

Signals

(none)

Exports

(none)

Methods

  • query -> QueryBuilder
  • process(entities: Array, components: Array, delta: float) -> void
  • update_preview(entity: Entity, state: PlacementComponent, position: GridPositionComponent) -> void
    • Get or create preview entity
  • get_or_create_preview(entity: Entity, state: PlacementComponent) -> Entity
    • Check if preview already exists
  • _get_preview_for(entity: Entity, state: PlacementComponent) -> Entity
  • create_preview_entity(entity: Entity, state: PlacementComponent) -> Entity
  • _handle_preview_visual_parenting(preview_entity: Entity) -> void
      1. Find Cursor2D and ManipulationParent
  • update_preview_position(preview_entity: Entity, position: GridPositionComponent) -> void
  • update_preview_visual_state(preview_entity: Entity, placement_entity: Entity, state: PlacementComponent) -> void
  • update_collision_indicators(preview_entity: Entity, placement_entity: Entity, state: PlacementComponent) -> void
  • check_preview_collision(placeable: PlaceableComponent, placement_entity: Entity) -> bool
    • Get placement request for target position
  • cleanup_preview(entity: Entity, state: PlacementComponent) -> void
  • update_all_previews -> void
  • update_preview_from_associated_entity(preview_entity: Entity) -> void
  • get_performance_metrics -> Dictionary
  • reset_metrics -> void
  • clear_all_previews -> void
  • validate_system -> Array
    • Check if GECS world is available
  • on_exit_tree -> void
  • _to_string -> String