GBOwner
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: user/gb_owner.gd
Version: 5.0
class_name: GBOwner
extends: GBGameNode
Summary
Component that assigns an entity as the active owner on a user state resource.
This node can automatically or manually designate an owner_root (such as a CharacterBody2D, NPC, or other)
as the active entity within the system, enabling participation in grid-based logic.
Signals
root_changed- Emits if the root owning node ever changes
Exports
owner_root- The root node representing the entity that owns this component.
This can be a player character, AI agent, NPC, or any other node that acts as the owning entity. This node will be assigned as the active entity in the user state.
Methods
_init()- Initialize with an optional owner root node.[br][br] [code]p_owner_root[/code]: [i]Node[/i] - Root node that owns this building context (optional)
resolve_gb_dependencies()- Resolve dependencies from the composition container.[br][br] [code]p_container[/code]: [i]GBCompositionContainer[/i] - Container with system dependencies and context
get_runtime_issues()- Validates that all required dependencies and properties are properly set. Returns validation issues if dependencies are missing, empty array if valid.[br][br] [code]return[/code]: [i]Array[String][/i] - List of validation issues (empty if valid)