OwnerContext

OwnerContext

The owner context of a CompositionContainer. All systems, settings, templates, etc contained within are correlated with the owner’s setup. You can have multiple CompositionContainers and Owners within a game if you need multiple full systems running at the same time (multiplayer etc). Ported from: godot/addons/grid_building/core/contexts/gb_owner_context.gd

Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/State/User/Owner.cs
Namespace: GridBuilding.Core.Domain.State
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Properties

AllowOverridingOwner

Whether to allow overriding an existing owner

OutputChangeFail

Whether to output a warning when owner change fails

Methods

SetOwner

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

Returns: void

Parameters:

  • IOwner? value

GetOwner

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

Returns: IOwner?

GetOwnerRoot

Returns the owner root or null if not set

Returns: object?

GetOrigin

Returns the origin node associated with the active owner (usually the owner_root).

Returns: object?

GetEditorIssues

Gets issues found during editor validation

Returns: List<string>

GetRuntimeIssues

Gets issues found during runtime validation

Returns: List<string>