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
OutputChangeFail
Whether to output a warning when owner change fails
bool OutputChangeFail { get; set; }
Property Value
Methods
GetEditorIssues()
Gets issues found during editor validation
List<string> GetEditorIssues()
Returns
GetOrigin()
Returns the origin node associated with the active owner
object? GetOrigin()
Returns
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
GetRuntimeIssues()
Gets issues found during runtime validation
List<string> GetRuntimeIssues()
Returns
SetOwner(IOwner?)
Sets the owner for this context
void SetOwner(IOwner? value)
Parameters
valueIOwnerThe new owner to set for this context
Events
OwnerChanged
Event raised when the owner changes
event Action<IOwner?>? OwnerChanged