ActionLogSettings
Returns an array of issues found during runtime validation
Other API reference for other classes in GridBuilding v5-0
This section contains the API reference for all other classes in the GridBuilding v5-0 plugin.
Returns an array of issues found during runtime validation
Small image representing the tag in UI elements.
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
Update indicator line only (no tile coordinates).
Formula for calculating AStarGrid2D movement cost When created, sets the default_default_estimate_heuristic on the AStarGrid2D of the GridTargetingSystem
Checks if the new target is part of the same object tree as any exclusion Returns true if new_target is a child/descendant of an excluded node This helps detect when TargetingShapeCast2D detects a different node of the same logical object
Gets issues that would prevent the targeting_system from being able to target. This should be called after grid targeting state properties have all been defined
Returns an array of issues found during runtime validation
Returns: [i]RuleCheckIndicator[/i] - Created indicator instance, or null if creation failed
Calculates the number of tiles that have an indicator over them. There should only be one indicator per tile!
Result class for position validation operations
Returns an array of issues found during runtime validation
[param p_position] Final world position for the root object [param p_rotation] Accumulated rotation in radians from ManipulationParent [param p_scale] Accumulated scale (may include negative values for flips)
Returns an array of issues found during runtime validation
Determines if the data has a valid setup
[code]return[/code]: [i]Array[String][/i] - List of validation issues (empty if valid)
Message for unsupported node types
Returns an array of runtime validation issues for this resource
Clears manipulation data reference when the provided data matches the active state.
[param expected] Dictionary with position, rotation, scale [param actual] Dictionary with position, rotation, scale [param position_tolerance] Maximum difference for position (default 0.1) [param rotation_tolerance] Maximum difference for rotation in radians (default 0.01) [param scale_tolerance] Maximum difference for scale (default 0.01) [return] Dictionary with keys: matches (bool), differences (Dictionary)
Returns an array of issues found during runtime validation
Extracts the script file name from an object’s attached script. Uses pure logic class for composition over inheritance. Returns the script filename with extension, or empty string if no script.[br][br] [code]p_check[/code]: [i]Object[/i] - Object to get script name from
Pure function for validating search parameters Returns array of validation issues
Checks if a collision object has any active physics layers that match a given bitmask.[br][br] [code]col_obj[/code]: [i]CollisionObject2D[/i] - Collision object to check layers for[br] [code]p_check_mask[/code]: [i]int[/i] - Physics layer bitmask to match against
Prunes fringe offsets for concave polygons by removing tiles whose overlap area is below min_area_ratio * tile_area. Returns a new array (may be original if no pruning beneficial).
Helper: Compute polygon area using shoelace formula
Helper: Compute polygon area using shoelace formula
The root node of the scene will be assigned the preview_root_script if any is in the settings
Typed result for recentering plan.
Initializes the resource stack with a type and count.
Check if the target is a preview object (has building_node script attached) Returns true if the target has the building_node script, indicating it’s a preview object
Returns an array of issues found during runtime validation
Handle targeting state changes - shows info for any targeted object (hover).[br] [br] [b]Priority Logic:[/b] If manipulation is active (active_target_node != null) or building preview is active (preview != null), this handler returns early without updating the display. This ensures manipulation and building preview info takes precedence over targeting info.[br] [br] [code]p_new[/code]: [i]Node2D[/i] - Newly targeted node (can be null)[br] [code]_p_old[/code]: [i]Node2D[/i] - Previously targeted node (unused)
Called when an area exits overlap
Promote a raw collider (which may be a child physics body) to its root Area2D if that root represents the intended gameplay target. This handles scenes like the Smithy where the visual/physics StaticBody2D is a child of an Area2D which carries the targetable layer. [param raw] The collider returned by ShapeCast2D. [return] A Node2D to use as targeting root (prefer Area2D on targetable layer) or the original if no promotion needed.
Validates that all required dependencies are properly set. Returns: Array[String] - List of validation issues (empty if valid)
Gets a number count of an item type stored in the container if any
Returns an array of issues found during runtime validation
Small image representing the tag in UI elements.
Converts global position to tile...
Update indicator line only (no tile coordinates).
Formula for calculating AStarGrid2D movement...
Checks if the new target...
Gets issues that would prevent...
Returns an array of issues found during runtime validation
Returns: [i]RuleCheckIndicator[/i] - Created indicator...
Calculates the number of tiles...
Result class for position validation operations
Returns an array of issues found during runtime validation
[param p_position] Final world position...
Returns an array of issues found during runtime validation
Determines if the data has a valid setup
[code]return[/code]: [i]Array[String][/i] - List of validation issues (empty if valid)
Message for unsupported node types
Returns an array of runtime validation issues for this resource
Clears manipulation data reference when the provided data matches the active state.
[param expected] Dictionary with position,...
Returns an array of issues found during runtime validation
Extracts the script file name...
Pure function for validating search...
Checks if a collision object...
Prunes fringe offsets for concave...
Helper: Compute polygon area using shoelace formula
Helper: Compute polygon area using shoelace formula
The root node of the scene will be assigned the preview_root_script if any is in the settings
Typed result for recentering plan.
Initializes the resource stack with a type and count.
Check if the target is...
Handle targeting state changes -...
Returns an array of issues found during runtime validation
Called when an area exits overlap
Promote a raw collider (which...
Validates that all required dependencies...
Gets a number count of an item type stored in the container if any