AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/placement/placement_command_component.gd
Version: 6.0
class_name: PlacementCommandComponent
extends: Component
Signals
(none)
Exports
action: CommandAction = CommandAction.PLACEstatus: CommandStatus = CommandStatus.PENDING- The entity being affected
- Target position for Place or Move actions
- Target rotation for Place or Rotate actions
- Snapshot data for Undo operations (e.g., previous position/rotation)
- Result or failure message
- Timestamp of when the command was created
target_entity_id: String = ""- Target position for Place or Move actions
- Target rotation for Place or Rotate actions
- Snapshot data for Undo operations (e.g., previous position/rotation)
- Result or failure message
- Timestamp of when the command was created
target_position: Vector2 = Vector2.ZERO- Target rotation for Place or Rotate actions
- Snapshot data for Undo operations (e.g., previous position/rotation)
- Result or failure message
- Timestamp of when the command was created
target_rotation: float = 0.0- Snapshot data for Undo operations (e.g., previous position/rotation)
- Result or failure message
- Timestamp of when the command was created
undo_data: Dictionary = {}- Result or failure message
- Timestamp of when the command was created
result_message: String = ""- Timestamp of when the command was created
timestamp: float = 0.0
Methods
_init(p_action: CommandAction = CommandAction.PLACE, p_target_position: Vector2 = Vector2.ZERO, p_target_entity_id: String = "")complete(message: String = "") -> voidfail(message: String) -> voidmark_undone -> voidis_successful -> boolis_active -> boolget_action_description -> Stringis_executed -> boolexecution_result -> Stringtransition_state(new_state: CommandState, message: String = "") -> void- Convert CommandState to CommandStatus
cancel -> voidget_message -> String_to_string -> Stringcreate_build_command(position: Vector2 = Vector2.ZERO, entity_id: String = "") -> PlacementCommandComponentto_dict -> Dictionaryfrom_dict(data: Dictionary) -> PlacementCommandComponent