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

PlacementWorldSetup

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: infrastructure/setup/placement_world_setup.gd

Version: 6.0

class_name: PlacementWorldSetup extends: RefCounted

Signals

(none)

Exports

(none)

Methods

  • create_placement_world(physics_enabled: bool = true) -> World
    • Add core placement systems
  • add_placement_systems(world: World) -> void
    • Add ECS systems in execution order
  • _add_manipulation_systems(parent: Node) -> void
  • create_placeable_entity(template_id: StringName, position: Vector2i, user_id: String = "") -> Entity
    • Core components
  • create_placement_request(entity: Entity, target_position: Vector2, rotation: float = 0.0, scale: Vector2 = Vector2.ONE) -> PlacementRequestComponent
  • enter_build_mode(entity: Entity, template: PlaceableTemplate, user_id: String = "") -> void
  • process_placement_frame(world: World, delta: float) -> void
    • Process all placement systems
  • validate_entity_placement(world: World, entity: Entity) -> ValidationResultComponent
  • execute_entity_placement(world: World, entity: Entity) -> bool
  • get_system_from_world(world: World, system_class: GDScript) -> Object
    • This would need to be implemented based on how GECS stores systems
  • get_placement_metrics(world: World) -> Dictionary
  • reset_placement_metrics(world: World) -> void
  • validate_placement_world(world: World) -> Array
  • create_test_scenario(world: World, obstacle_positions: Array) -> Array
    • Create placeable entities
  • demonstrate_placement_workflow(world: World) -> Dictionary