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

GridPositionComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/grid/grid_position_component.gd

Version: 6.0

class_name: GridPositionComponent extends: Component

Signals

(none)

Exports

  • position: Vector2i = Vector2i.ZERO
    • Pure data container following ECS principles - all logic moved to GridMathUtils.
  • layer: int = 0
    • Grid cell size for coordinate conversion
    • Runtime bounds validation state
    • Simple, clear constructor
  • grid_size: Vector2 = Vector2(16, 16)
    • Runtime bounds validation state
    • Simple, clear constructor
  • is_valid: bool = true
    • Simple, clear constructor

Methods

  • _init(p_position: Vector2i = Vector2i.ZERO, p_layer: int = 0) -> void
  • get_position -> Vector2i
  • set_position(new_position: Vector2i) -> void