Vixen
02b45cc4

IForEach

interface
csharp
public interface IForEach<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

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, ref T6 component6, ref T7 component7, ref T8 component8, ref T9 component9, ref T10 component10, ref T11 component11, ref T12 component12, ref T13 component13)

    Runs on one entity's components.

Used by (1)

  • WorldQueryExtensionsVixen.Ecs