AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/placement/placement_history_component.gd
Version: 6.0
class_name: PlacementHistoryComponent
extends: Component
Signals
(none)
Exports
timestamp: float = 0.0entity_id: String = ""position: Vector2 = Vector2.ZEROplaceable_template: String = ""success: bool = falsesession_id: String = ""metadata: Dictionary = {}max_history_size: int = 1000- Current session identifier for grouping events
- Whether history recording is currently active
- Total number of entries recorded (including cleared ones)
- Time when history was last cleared
current_session_id: String = ""- Whether history recording is currently active
- Total number of entries recorded (including cleared ones)
- Time when history was last cleared
- Add a new entry to the history
- [param entry]: The history entry to add
is_recording: bool = true- Total number of entries recorded (including cleared ones)
- Time when history was last cleared
total_entries_recorded: int = 0- Time when history was last cleared
last_cleared_time: float = 0.0
Methods
_init(p_timestamp: float = 0.0, p_event_type: PlacementEventComponent, p_entity_id: String = "", p_position: Vector2 = Vector2.ZERO, p_placeable_template: String = "", p_success: bool = false, p_session_id: String = "", p_metadata: Dictionary = {}) -> void_to_string -> Stringfrom_dictionary(data: Dictionary) -> PlacementHistoryEntry_init -> voidadd_entry(entry: PlacementHistoryEntry) -> voidadd_event_from_component(event_component: PlacementEventComponent) -> voidget_entries_by_session(session_id: String) -> Arrayget_entries_by_time_range(start_time: float, end_time: float) -> Arrayget_entries_by_position(position: Vector2, tolerance: float = 1.0) -> Arrayget_entries_by_event_type(event_type: PlacementEventComponent) -> Arrayget_recent_entries(count: int) -> Arrayget_entries_by_entity(entity_id: String) -> Arrayclear_history -> voidclear_old_entries(cutoff_time: float) -> voidget_statistics -> Dictionarystart_new_session(session_id: String = "") -> voidis_empty -> boolget_oldest_entry_age -> floatget_newest_entry_age -> float