Table of Contents

Class PropertyOverrides<T>

Namespace
Shard.Assets
Assembly
Shard.Assets.dll

Provides typed queries for local and effective property overrides during asset loading.

public sealed class PropertyOverrides<T> where T : notnull

Type Parameters

T
Inheritance
PropertyOverrides<T>
Inherited Members

Methods

IsEffectivelyOverridden(string, PropertyPath<T>)

Reports whether the effective value receives the property from this document or a parent.

public bool IsEffectivelyOverridden(string assetKey, PropertyPath<T> property)

Parameters

assetKey string
property PropertyPath<T>

Returns

bool

IsOverridden(string, PropertyPath<T>)

Reports whether the asset's own document supplied the property.

public bool IsOverridden(string assetKey, PropertyPath<T> property)

Parameters

assetKey string
property PropertyPath<T>

Returns

bool

LastOverrideOrder(string, PropertyPath<T>)

Returns the document order of the property's final local occurrence.

public int? LastOverrideOrder(string assetKey, PropertyPath<T> property)

Parameters

assetKey string
property PropertyPath<T>

Returns

int?

TryGetEffectiveOverride(string, PropertyPath<T>, out string, out int)

Finds the nearest document whose modification contributes the effective property.

public bool TryGetEffectiveOverride(string assetKey, PropertyPath<T> property, out string sourceAssetKey, out int order)

Parameters

assetKey string
property PropertyPath<T>
sourceAssetKey string
order int

Returns

bool

TryGetParent(string, out string)

Gets the resolved materialization parent while the load candidate is active.

public bool TryGetParent(string assetKey, out string parentKey)

Parameters

assetKey string
parentKey string

Returns

bool