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
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
Returns the current owner of this context. May return null if no owner has been set.
get_owner_root
Returns the owner root or null if not set
get_origin
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
Validates the editor configuration before nodes are set up.
@return: Array[String] - List of editor validation issues.
get_runtime_issues
Validates the runtime configuration after nodes are set up.
@return: Array[String] - List of runtime validation issues.
Private Methods
_init
Flags: private