GBOwnerContext

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

The owner of a GBCompositionContainer All systems, settings, templates, etc contained within correlated with the owners setup. You can have multiple GBCompositionContainers and GBOwners within a game if you need multiple full systems running at the same time (multiplayer etc)

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

Extends: RefCounted

Signals

  • Signal: owner_changed(owner: GBOwner)

Properties

  • Property: allow_overriding_owner: bool = true
  • Property: output_change_fail: bool = true

Private Properties

  • Property: _owner: [GBOwner](./gb-owner/) = null (private)

Public Methods

set_owner

1
set_owner(value: GBOwner) -> void

Sets the owner for this context. Respects the allow_overriding_owner setting when changing from an existing owner.

value: GBOwner - The new owner to set for this context


get_owner

1
get_owner() -> GBOwner

Returns the current owner of this context. May return null if no owner has been set.


get_owner_root

1
get_owner_root() -> Node

Returns the owner root or null if not set


get_origin

1
get_origin() -> Node

Returns the origin node associated with the active owner (usually the owner_root). [return] The origin node when an owner is assigned, otherwise null.


get_editor_issues

1
get_editor_issues() -> Array[String]

Validates the editor configuration before nodes are set up. @return: Array[String] - List of editor validation issues.


get_runtime_issues

1
get_runtime_issues() -> Array[String]

Validates the runtime configuration after nodes are set up. @return: Array[String] - List of runtime validation issues.


Private Methods

_init

1
_init(p_owner: GBOwner = null) -> void

Flags: private