Skip to content

v3.6.0

Latest

Choose a tag to compare

@friflo friflo released this 23 Mar 10:04
· 344 commits to main since this release

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);
    }
}