github outfox/fennecs 0.6.0

latest releases: v0.6.10, v0.6.9, v0.6.8...
8 months ago
  • New Feature: per-component filters, via Stream.Where(...))
var myStream = _world.Query<Vector3, int>().Stream();
var myStreamOver9000 = myStream.Where((in int i) => i > 9000);
var myStreamOver9000LeftOnly = myStreamOver9000.Where((in Vector3 v) => v.X < 0.0f);
  • New Feature: binary packaged for .NET 8, .NET 9, and .NET 10 frameworks.

  • Breaking Change: Streams as readonly record structs. (only marginally affects API, but does have implications for Subset/Exclude Filter states, which can only be set when creating a new Stream instance, e.g. via the with keyword)

  • Breaking Change: Streams no longer inherit all the subset methods (e.g., a Stream<ComponentA, ComponentB> no longer possesses a For(ComponentAction<ComponentA>) action, the stream will always enumerate all component data. You can obtain a new Stream through the exposed Query field on an existing Stream.

  • Fix: Isse #38, InvalidOperationException in Component.ToString()

  • Fix: Double-Free in QueryBuilder lead to corruption of MaskPool.

  • Improvement: reduced thread locks everywhere.

Full Changelog: 0.5.16-beta...0.6.0

Don't miss a new fennecs release

NewReleases is sending notifications on new releases.