Repository navigation
New Feature: Query Generator
Documentation
GitHub issue#124
The Query Generator generates highly efficient query code and reduce the amount of boiler plate to a minimum.
The generator is a C# Source Generator to enable seamless development.
Example
struct IsStatic : ITag;
partial class Queries {
[Query]
[WithoutAnyTags<IsStatic>]
static void MovePosition(ref Position position, float deltaX) {
position.x += deltaX;
}
public static void Run() {
var store = new EntityStore();
store.CreateEntity(new Position());
MovePositionQuery(store, 2);
}
}