JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[queries] [filters] Rework query filters #41

Closed JaimeGensler closed 1 year ago

JaimeGensler commented 1 year ago

Reworks query filters toward a better API and significantly cuts down on parsing code

Still need to add And on the transformer side

Resolves #9 Resolves #40

JaimeGensler commented 1 year ago

And added transformer side. This also flattens query filters from an object like { with: bigint[], without: bigint[] } to be a single bigint[] with pairs acting as the with/without