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.NONEprevious_action: Action = Action.NONEtarget_position: Vector2 = Vector2.ZEROaction_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) -> voidset_action(action: Action, position: Vector2 = Vector2.ZERO) -> voidclear_action -> voidis_action_on_cooldown -> boolcan_execute_action -> bool_validate_action(action: Action, position: Vector2) -> bool- Basic validation - can be extended
get_action_description -> String_to_string -> String