DragPathData
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: systems/building/data/drag_path_data.gd
Version: 5.1
class_name: DragPathData
extends: (none)
Summary
Drag for a single drag operation between a start and end position
Signals
(none)
Exports
(none)
Methods
_init()update()- Updates the drag data with current frame delta time. Recalculates distance, time held, and target tile position for this drag operation.[br][br] [code]delta[/code]: [i]float[/i] - Time elapsed since last frame in seconds
get_tile_at_node_2d()- Converts global position to tile coordinates on the specified map. Helper function for converting world positions to tilemap coordinates.[br][br] [code]p_map[/code]: [i]TileMapLayer[/i] - The tilemap layer to convert coordinates for[br] [code]p_global_position[/code]: [i]Vector2[/i] - Global position to convert to tile coordinates
stop()