NavigationProcessor Class
Namespace: Stride.Navigation.ProcessorsAssembly: 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>
Name | Description | |
---|---|---|
Methods | ||
GenerateComponentData(Entity, NavigationComponent) | Generates associated data to the given entity. |
|
IsAssociatedDataValid(Entity, NavigationComponent, NavigationProcessor.AssociatedData) | Checks if the current associated data is valid, or if readding the entity is required. |
|
OnEntityComponentAdding(Entity, NavigationComponent, NavigationProcessor.AssociatedData) | Run when a matching entity is added to this entity processor. |
|
OnEntityComponentRemoved(Entity, NavigationComponent, NavigationProcessor.AssociatedData) | Run when a matching entity is removed from this entity processor. |
|
OnSystemAdd() | Run when this EntityProcessor is added to an EntityManager. |
|
OnSystemRemove() | Run when this EntityProcessor is removed from an EntityManager. |
|
Update(GameTime) | Performs work related to this processor. |
Methods
GenerateComponentData(Entity, NavigationComponent)
Generates associated data to the given entity.
protected override NavigationProcessor.AssociatedData GenerateComponentData(Entity entity, NavigationComponent component)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
NavigationComponent | component |
Returns
Type | Description |
---|---|
NavigationProcessor.AssociatedData | The associated data. |
Overrides
IsAssociatedDataValid(Entity, NavigationComponent, NavigationProcessor.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
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
NavigationComponent | component | |
NavigationProcessor.AssociatedData | associatedData |
Returns
Type | Description |
---|---|
System.Boolean | True if the change in associated data requires the entity to be readded, false otherwise. |
Overrides
OnEntityComponentAdding(Entity, NavigationComponent, NavigationProcessor.AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, NavigationComponent component, NavigationProcessor.AssociatedData data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
NavigationComponent | component | |
NavigationProcessor.AssociatedData | data |
Overrides
OnEntityComponentRemoved(Entity, NavigationComponent, NavigationProcessor.AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, NavigationComponent component, NavigationProcessor.AssociatedData data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
NavigationComponent | component | |
NavigationProcessor.AssociatedData | data |
Overrides
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()
Overrides
OnSystemRemove()
Run when this EntityProcessor is removed from an EntityManager.
protected override void OnSystemRemove()
Overrides
Update(GameTime)
Performs work related to this processor.
public override void Update(GameTime time)
Parameters
Type | Name | Description |
---|---|---|
GameTime | time |