SanderMertens / flecs

A fast entity component system (ECS) for C & C++

Home Page:https://www.flecs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

has(Wildcard) should only match non-pairs

safasofuoglu opened this issue · comments

From discord:

safa — Yesterday at 9:17 PM
remove(Wildcard) removes only non-pairs while has(Wildcard) returns true if an entity has only a pair. could we make this consistent?
has(pair(Wildcard, Wildcard)) and remove(pair(Wildcard, Wildcard)) only deal with pairs, intuitively.

Sander — Today at 3:08 PM
You’re right, that is a bit inconsistent
I guess * should only match non pairs 🤔

safa — Today at 3:34 PM
I agree. neither approach is absolutely intuitive, but this way we retain the ability to address non-pairs.

Fixed!