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

ActionComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/system/action_component.gd

Version: 6.0

class_name: ActionComponent extends: Component

Signals

(none)

Exports

  • current_action: Action = Action.NONE
  • previous_action: Action = Action.NONE
  • target_position: Vector2 = Vector2.ZERO
  • action_cooldown: float = 0.1
    • Last action timestamp
    • Action validity flag
    • Initialize component with action data
  • last_action_time: float = 0.0
    • Action validity flag
    • Initialize component with action data
  • is_action_valid: bool = true
    • Initialize component with action data

Methods

  • _init(current_action: Action = Action.NONE, previous_action: Action = Action.NONE, target_position: Vector2 = Vector2.ZERO, timestamp: float = 0.0) -> void
  • _init(data: ActionData = null) -> void
  • set_action(action: Action, position: Vector2 = Vector2.ZERO) -> void
  • clear_action -> void
  • is_action_on_cooldown -> bool
  • can_execute_action -> bool
  • _validate_action(action: Action, position: Vector2) -> bool
    • Basic validation - can be extended
  • get_action_description -> String
  • _to_string -> String