Class QueryNode<T>
Generic abstract base class for queries
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[Serializable]
public abstract class QueryNode<T> : QueryNode, IQuery<T>, IQuery
Type Parameters
Name | Description |
---|---|
T |
Fields
m_OriginalResult
The m original result
Declaration
[HideInInspector]
[SerializeField]
protected T m_OriginalResult
Field Value
Type | Description |
---|---|
T |
m_Result
The m result
Declaration
[FormerlySerializedAs("_target")]
[SerializeField]
protected T m_Result
Field Value
Type | Description |
---|---|
T |
Properties
Result
Result of the query
Declaration
public T Result { get; set; }
Property Value
Type | Description |
---|---|
T | The result. |
Implements
ResultObject
Gets or sets the result object.
Declaration
public override object ResultObject { get; set; }
Property Value
Type | Description |
---|---|
Object | The result object. |
Overrides
Implements
Methods
ApplyOverride(QueryNode)
Applies the override.
Declaration
public override bool ApplyOverride(QueryNode overrideSource)
Parameters
Type | Name | Description |
---|---|---|
QueryNode | overrideSource | The override source. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
BackupOriginal()
Backups the original.
Declaration
protected virtual void BackupOriginal()
ExecuteQuery(QueryContext)
Executes the query.
Declaration
public override void ExecuteQuery(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Overrides
Implements
HasAnOverride()
Determines whether [has an override].
Declaration
public override bool HasAnOverride()
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
Query(QueryContext)
Query logic
Declaration
public virtual T Query(QueryContext context = null)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
T | T. |
ResetOverride()
Resets the override.
Declaration
public override void ResetOverride()
Overrides
ResolveQuery(QueryContext)
Resolves the query.
Declaration
public T ResolveQuery(QueryContext context = null)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
T | T. |
SetQuery(T, QueryContext)
Set the Query result
Declaration
public virtual void SetQuery(T resultData, QueryContext context = null)
Parameters
Type | Name | Description |
---|---|---|
T | resultData | The result data. |
QueryContext | context | The context. |