csharp
public sealed class ReadsAttributeDeclares the component types a system reads.
No guide page documents this yet — the page shows what the code says about itself.
As a annotation
- Valid on
- Class, Struct, repeatable
Remarks
Read against read is not a conflict, so two systems that only read the same components run at the same time. Declaring more than the system touches costs parallelism; declaring less is a data race, so the safe direction is over-declaring and that is the direction the generator will err in when it infers these from query bodies.
Fields and properties (1)
public IReadOnlyList<Type> ComponentTypesThe component types.
Methods (1)
public ReadsAttribute(params Type[] componentTypes)Declares the component types a system reads.
Used by (4)
- AlsoReadPositionSystemVixen.Ecs.Tests
- IntegrateSystemVixen.Ecs.Tests
- ReadPositionSystemVixen.Ecs.Tests
- SystemAccessVixen.Ecs