Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Encapsulates common Query logic for components filtering.
In case if resource is GameObject => Looking for Component with HandlingType. Otherwise compares object type itself.
T | : | UnityEngine.Object |
Public Member Functions | |
virtual bool | IsResourcePassingFilter (GameObject resource, out UnityEngine.Object filteredResource) |
Looking for component with a type defined at the HandlingType property. More... | |
virtual bool | IsResourcePassingFilter (UnityEngine.Object resource, out UnityEngine.Object filteredResource) |
Checks is the resource is can be casted to the HandlingType and handles it if possible. More... | |
bool | IsResourcePassingFilter (UnityEngine.GameObject resource, out UnityEngine.Object filteredResource) |
Passing the resource through the query filter. More... | |
Protected Member Functions | |
virtual bool | OnResourceFilter (object resource, out UnityEngine.Object filteredResource) |
A query filter logic those defies separately for each filter according with its purposes. More... | |
Properties | |
virtual Type | HandlingType [get] |
Type that will be handled by the query. More... | |
bool | IsComponentsHandler [get] |
Checks is handling type is component-like. | |
virtual string | GetStaticSignature [get] |
Returns a signature of the filter by the value. Using to hashing filters into history. More... | |
|
virtual |
Looking for component with a type defined at the HandlingType property.
Handle it via OnResourceFilter(object, out UnityEngine.Object) if found.
resource | Input resource for check. |
filteredResource | Sub-resource that was selected by filter as the target. Will be registered in filter->resource pair in Resource collection. |
|
inherited |
Passing the resource through the query filter.
resource | Comparable resource. |
filteredResource | Sub-resource that was selected by filter as the target. Will be registered in filter->resource pair in Resource collection. |
|
virtual |
Checks is the resource is can be casted to the HandlingType and handles it if possible.
resource | Input resource for check. |
filteredResource | Sub-resource that was selected by filter as the target. Will be registered in filter->resource pair in Resource collection. |
Implements Doloro.DataManagement.DynamicResources.Search.IResourceFilter.
|
protectedvirtual |
A query filter logic those defies separately for each filter according with its purposes.
resource | Instance that passed through IsResourcePassingFilter(GameObject, out UnityEngine.Object) or similar handler. |
filteredResource | Sub-resource that was selected by filter as the target. Will be registered in filter->resource pair in Resource collection. |
Reimplemented in Doloro.DataManagement.DynamicResources.Search.SignatureFilter< T >, Doloro.DataManagement.DynamicResources.Search.TagsAbsenceFilter< T >, and Doloro.DataManagement.DynamicResources.Search.TagsDefinitionFilter< T >.
|
get |
Returns a signature of the filter by the value. Using to hashing filters into history.
Default: HandlingType.FullName
Implements Doloro.DataManagement.DynamicResources.Search.IResourceFilter.
|
get |
Type that will be handled by the query.
Could be:
UnityEngine.Component
for UnityEngine.GameObject
resources.UnityEngine.Object
resources.