Skip to content

GBOwner

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.

signal root_changed( new_root: Node )

Emits if the root owning node ever changes

owner_root: Node :

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.

resolve_gb_dependencies( p_container: GBCompositionContainer ) -> void

Resolve dependencies from the composition container.

p_container: GBCompositionContainer - Container with system dependencies and context

get_runtime_issues( ) -> Array[String]

Validates that all required dependencies and properties are properly set. Returns validation issues if dependencies are missing, empty array if valid.

return: Array[String] - List of validation issues (empty if valid)

addons/grid_building/user/gb_owner.gd


This page was auto-generated from GDScript source. Edit the source file to improve documentation.

Generated on 2025-09-07