Skip to content

1.0.1

Compare
Choose a tag to compare
@genaray genaray released this 12 Jan 22:33
· 228 commits to master since this release

New Features

  • Update attribute is now Query.
  • Improved query performance by caching the Query struct.
  • Queries can now be generated for every partial class.
  • [Data] attributes which mark parameters being passed to the generated query.
  • Generated querys now require a World and Data parameters as params.

New generated queries

[Query]
public void MoveEntity([Data] in float time, ref Position pos, ref Velocity vel){
    pos.X += time * vel.X;
    pos.Y += time * vel.Y;
}

// Somewhere else where the method is acessable
MoveEntityQuery(someWorld, someTime);  // Call the generated method, multiple "[Data]" sources are allowed.