Interface IReferrerDependentValidity
Defines a validity to be used when item is referenced by something else.
Namespace: Eco.Core.Utils.PropertyScanning
Assembly: Eco.Gameplay.dll
Syntax
public interface IReferrerDependentValidity : ICustomValidity, IValidity
Methods
Valid(Type, Type)
Check if valid for types that refer to this item. IE, some references to a given object may be valid while others invalid, depending on who's referring to it.
Declaration
Result Valid(Type referrerType, Type referrerRootType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | referrerType | The immediate parent of the item. |
| System.Type | referrerRootType | The root object this item belongs to. |
Returns
| Type | Description |
|---|---|
| Result |