Table of Contents

Interface IOwnerContext

Namespace
MoonBark.GridPlacement.Core.Domain.State
Assembly
MoonBark.GridPlacement.Core.dll

Interface for owner context - allows mocking in tests

public interface IOwnerContext

Properties

AllowOverridingOwner

Whether to allow overriding an existing owner

bool AllowOverridingOwner { get; set; }

Property Value

bool

OutputChangeFail

Whether to output a warning when owner change fails

bool OutputChangeFail { get; set; }

Property Value

bool

Methods

GetEditorIssues()

Gets issues found during editor validation

List<string> GetEditorIssues()

Returns

List<string>

GetOrigin()

Returns the origin node associated with the active owner

object? GetOrigin()

Returns

object

GetOwner()

Returns the current owner of this context

IOwner? GetOwner()

Returns

IOwner

Current owner or null if not set

GetOwnerRoot()

Returns the owner root or null if not set

object? GetOwnerRoot()

Returns

object

GetRuntimeIssues()

Gets issues found during runtime validation

List<string> GetRuntimeIssues()

Returns

List<string>

SetOwner(IOwner?)

Sets the owner for this context

void SetOwner(IOwner? value)

Parameters

value IOwner

The new owner to set for this context

Events

OwnerChanged

Event raised when the owner changes

event Action<IOwner?>? OwnerChanged

Event Type

Action<IOwner>