NodeLocator
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: systems/placement/validators/placement_rules/resources/node_locator.gd
Version: 5.1
class_name: NodeLocator
extends: Resource
Summary
Settings for locating inventory nodes during rule validation.
Signals
(none)
Exports
method- Method for finding the inventory node.
search_string- Search string to use with the search method.
Methods
_init()locate_container()- Locates a container node based on the configured search method. Searches the node tree using the specified method and search string. Uses pure logic class for composition over inheritance. [code]search_root[/code]: [i]Node[/i] - Root node to start the search from[br]
get_script_name()- 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