Class SpatialObserverExtensions
Entry points for the two systems layered on the spatial index.
public static class SpatialObserverExtensions
- Inheritance
-
SpatialObserverExtensions
- Inherited Members
Methods
SpatialObservers<T>(DatabaseEngine)
Interest management for component T, which must carry a [SpatialIndex] field.
public static SpatialObserverSet SpatialObservers<T>(this DatabaseEngine engine) where T : unmanaged
Parameters
engineDatabaseEngine
Returns
Type Parameters
T
Remarks
The underlying state is created on first use and lives as long as the component's ComponentTable does — which is the engine's lifetime in
ordinary use, but NOT across a schema migration that reconstructs the table. Obtain the façade again after one rather than holding it across.
SpatialTriggers<T>(DatabaseEngine)
Trigger volumes for component T, which must carry a [SpatialIndex] field.
public static SpatialTriggerVolumes SpatialTriggers<T>(this DatabaseEngine engine) where T : unmanaged
Parameters
engineDatabaseEngine
Returns
Type Parameters
T
Remarks
The underlying state is created on first use and lives as long as the component's ComponentTable does — which is the engine's lifetime in
ordinary use, but NOT across a schema migration that reconstructs the table. Obtain the façade again after one rather than holding it across.