Table of Contents

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
NavigationProcessor
Inherited Members

Methods

GenerateComponentData(Entity, NavigationComponent)

Generates associated data to the given entity.

protected override NavigationProcessor.AssociatedData GenerateComponentData(Entity entity, NavigationComponent component)

Parameters

entity Entity

The entity.

component NavigationComponent

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

entity Entity

The entity.

component NavigationComponent
associatedData NavigationProcessor.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

entity Entity

The entity.

component NavigationComponent
data NavigationProcessor.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

entity Entity

The entity.

component NavigationComponent
data NavigationProcessor.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

time GameTime