GBOwner

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Component that assigns an entity as the active owner on a user state resource.

Source File: addons/grid_building/user/gb_owner.gd

Extends: GBGameNode

Signals

  • Signal: root_changed(new_root: Node) - Emits if the root owning node ever changes

Exported Properties

  • Property: 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.

Private Properties

  • Property: _context: [GBOwnerContext](./gb-owner-context/) (private)

Public Methods

resolve_gb_dependencies

1
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

1
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)


Private Methods

_init

1
_init(p_owner_root : Node = null) -> void

Flags: private

Initialize with an optional owner root node.

p_owner_root: Node - Root node that owns this building context (optional)