Class NavigationProcessor
- Namespace
- Stride.Navigation.Processors
- Assembly
- Stride.Navigation.dll
Manages the loading of the native side navigation meshes. Will only load one version of the navigation mesh if it is referenced by multiple components
public class NavigationProcessor : EntityProcessor<NavigationComponent, NavigationProcessor.AssociatedData>- Inheritance
- 
      objectNavigationProcessor
- Inherited Members
Methods
GenerateComponentData(Entity, NavigationComponent)
Generates associated data to the given entity.
protected override NavigationProcessor.AssociatedData GenerateComponentData(Entity entity, NavigationComponent component)Parameters
- entityEntity
- The entity. 
- componentNavigationComponent
Returns
- NavigationProcessor.AssociatedData
- The associated data. 
IsAssociatedDataValid(Entity, NavigationComponent, AssociatedData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, NavigationComponent component, NavigationProcessor.AssociatedData associatedData)Parameters
- entityEntity
- The entity. 
- componentNavigationComponent
- associatedDataNavigationProcessor.AssociatedData
- The associated data. 
Returns
- bool
- True if the change in associated data requires the entity to be readded, false otherwise. 
OnEntityComponentAdding(Entity, NavigationComponent, AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, NavigationComponent component, NavigationProcessor.AssociatedData data)Parameters
- entityEntity
- The entity. 
- componentNavigationComponent
- dataNavigationProcessor.AssociatedData
- The associated data. 
OnEntityComponentRemoved(Entity, NavigationComponent, AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, NavigationComponent component, NavigationProcessor.AssociatedData data)Parameters
- entityEntity
- The entity. 
- componentNavigationComponent
- dataNavigationProcessor.AssociatedData
- The associated data. 
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()OnSystemRemove()
Run when this EntityProcessor is removed from an EntityManager.
protected override void OnSystemRemove()Update(GameTime)
Performs work related to this processor.
public override void Update(GameTime time)Parameters
- timeGameTime