Browse Source

Update flexible-processing.md

Forgot to fix these
Eideren 1 year ago
parent
commit
60a076ac9c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      en/manual/engine/entity-component-system/flexible-processing.md

+ 3 - 3
en/manual/engine/entity-component-system/flexible-processing.md

@@ -37,7 +37,7 @@ The main difference compared to [`EntityProcessor`](xref:Stride.Engine.EntityPro
 is that [`IComponent`](xref:Stride.Engine.FlexibleProcessing.IComponent`2) is not limited to concrete types, your processor may operate on interfaces as well;
 is that [`IComponent`](xref:Stride.Engine.FlexibleProcessing.IComponent`2) is not limited to concrete types, your processor may operate on interfaces as well;
 ```cs
 ```cs
 // Here, declaring the interface, which will be the type received by the processor
 // Here, declaring the interface, which will be the type received by the processor
-public interface IInteractable : IComponent<IInteractable.ShapeProcessor, IInteractable>
+public interface IInteractable : IComponent<IInteractable.InteractableProcessor, IInteractable>
 {
 {
     void Interact();
     void Interact();
     public class InteractableProcessor : IProcessor
     public class InteractableProcessor : IProcessor
@@ -47,7 +47,7 @@ public interface IInteractable : IComponent<IInteractable.ShapeProcessor, IInter
     }
     }
 }
 }
 
 
-// Now any component implementing IInteractable will be processed by the ShapeProcessor
+// Now any component implementing IInteractable will be processed by the InteractableProcessor
 public class Button : StartupScript, IInteractable
 public class Button : StartupScript, IInteractable
 {
 {
     public void Interact(){}
     public void Interact(){}
@@ -91,4 +91,4 @@ public interface ISpecialTick : IComponent<ISpecialTick.Processor, ISpecialTick>
 
 
 ## Performance
 ## Performance
 While it is more flexible, processing components as interfaces instead of concrete class may introduce some overhead.
 While it is more flexible, processing components as interfaces instead of concrete class may introduce some overhead.
-If the system you're writing is performance critical you should look into strategies to elide or reduce virtual calls in your hot path.
+If the system you're writing is performance critical you should look into strategies to elide or reduce virtual calls in your hot path.