Vixen
02b45cc4

IForEach

interface
csharp
public interface IForEach<T0, T1, T2, T3, T4, T5>

A struct visitor a query calls per entity, with no delegate to dispatch through.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Constrained to struct where it is used, so the call is monomorphic and the JIT inlines the body into the loop. This is the form to reach for when the delegate's indirect call shows up in a profile.

Methods (1)

  • void Execute(ref T0 component0, ref T1 component1, ref T2 component2, ref T3 component3, ref T4 component4, ref T5 component5)

    Runs on one entity's components.

Used by (1)

  • WorldQueryExtensionsVixen.Ecs