Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Sensor that has not self trigger zone and using another sensor as source of triggered object to extra filtering.
Public Member Functions | |
void | ReloadFilters () |
Dropping current collection of bond filters and looking for new. | |
void | Refilter () |
Forcing drop of current filtered collection and call of new filter for entire triggered list. | |
bool | Refilter (GameObject target) |
Forcing recheck triggered object with filters. More... | |
bool | RemoveFilter (ASensorFilter filter) |
Removing filter from the list. More... | |
bool | ContainsFilter< T > () |
Checks is the sensor already has the filter assigned from the type. More... | |
bool | FindFilter< T > (out ASensorFilter filter) |
Checks is the sensor already has the filter assigned from the type. More... | |
void | AddFilter (ASensorFilter filter) |
Adding filter to collection. Re-filters triggered objects. More... | |
override void | Add (GameObject item) |
Adding object to triggered collection. Sending object to the filters. More... | |
override bool | Remove (GameObject item) |
Trying to remove object from triggered. More... | |
override void | Clear () |
Cleared collections of detected objects. More... | |
override void | CopyTo (GameObject[] array, int arrayIndex) |
Copying filtered objects to destination array. More... | |
override bool | Contains (GameObject item) |
Checks is the object exists among filtered. More... | |
IEnumerator< GameObject > | GetEnumeratorForTriggered () |
Returns enumerator for entire triggered objects without filters applying. More... | |
override IEnumerator< GameObject > | GetEnumerator () |
Returns enumerator for triggered objects passed filters. More... | |
Protected Member Functions | |
override void | Awake () |
Occurs when component instantiated. More... | |
override void | OnDestroy () |
Occurs when object destroyed. More... | |
override void | OnTriggerEnter (Collider __) |
Empty. Not react by itself. More... | |
override void | OnTriggerExit (Collider __) |
Empty. Not react by itself. More... | |
virtual void | OnFilterModified (ASensorFilter filter) |
Handler that calls Refilter in case if sensor's settings was modified. More... | |
virtual bool | Filter (GameObject obj) |
Checking is the game object crossed trigger bounds passed the filters or not. More... | |
Protected Attributes | |
List< GameObject > | triggered = new List<GameObject>() |
List that contain the game objects that placed in zone in current time. | |
Properties | |
Sensor | Source [get, set] |
Reference to the source manager. | |
override int | Count [get] |
Returns count of objects passed filters. | |
ASensorFilter[] | BondFilters [get] |
Array of filters applied to sensor. | |
GameObject | LastEnterDetection [get] |
Last game object that was detected on zone enter. More... | |
GameObject | LastExitDetection [get] |
Last game object that was detected on zone exit. | |
virtual bool | IsReadOnly [get] |
Always false. | |
int | Id [get, set] |
Id of current sensor behaviorManager. Using for hot binding. | |
Events | |
System.Action | SourceSensorChanged |
Occurs when Source changing value. | |
System.Action< GameObject > | Filtered |
Occurs when game object will enter to a sensor borders and passed filters. | |
System.Action< GameObject > | Detected |
Occurs when game object enters to a sensor borders. | |
System.Action< GameObject > | Exited |
Occurs when game object leaves a sensor borders. | |
System.Action< int > | IdChanged |
Occurs when Id is changed. Sharing id before change. | |
|
virtualinherited |
Adding object to triggered collection. Sending object to the filters.
item | Item to manual triggering. |
Reimplemented from Doloro.Sensors.Sensor.
|
inherited |
Adding filter to collection. Re-filters triggered objects.
filter | Filter to add. |
System.ArgumentNullException | value is null. |
|
protectedvirtual |
Occurs when component instantiated.
Reimplemented from Doloro.Sensors.Sensor.
|
virtualinherited |
Cleared collections of detected objects.
Reimplemented from Doloro.Sensors.Sensor.
|
virtualinherited |
Checks is the object exists among filtered.
item | Item to check. |
Reimplemented from Doloro.Sensors.Sensor.
|
inherited |
Checks is the sensor already has the filter assigned from the type.
T | Type or some inherit type of the filter. |
|
virtualinherited |
Copying filtered objects to destination array.
array | Destination array |
arrayIndex | Start index at destination array. |
Reimplemented from Doloro.Sensors.Sensor.
|
protectedvirtualinherited |
Checking is the game object crossed trigger bounds passed the filters or not.
obj |
|
inherited |
Checks is the sensor already has the filter assigned from the type.
T | Type or some inherit type of the filter. |
filter | Reference to filter. Null if not found. |
|
virtualinherited |
Returns enumerator for triggered objects passed filters.
Reimplemented from Doloro.Sensors.Sensor.
|
inherited |
Returns enumerator for entire triggered objects without filters applying.
|
protectedvirtual |
Occurs when object destroyed.
Reimplemented from Doloro.Sensors.Sensor.
|
protectedvirtualinherited |
Handler that calls Refilter in case if sensor's settings was modified.
filter | Modified filter. |
|
protectedvirtual |
|
protectedvirtual |
|
inherited |
Forcing recheck triggered object with filters.
target | Object registered at the trigger. |
System.AccessViolationException | Object not registered by sensor trying to affect the register. |
|
virtualinherited |
Trying to remove object from triggered.
item | Item to remove. |
Simulates regular reaction the same as object left the trigger bound by itself.
Reimplemented from Doloro.Sensors.Sensor.
|
inherited |
Removing filter from the list.
filter | Filter to remove. |
|
getinherited |
Last game object that was detected on zone enter.
Will updated in case if setted object leaving the sensor's range. Null in case if any objects left.