Skip to content

Add observeTags for multi-tag intersection support#14

Open
LDGerrits wants to merge 1 commit intoSleitnick:mainfrom
LDGerrits:main
Open

Add observeTags for multi-tag intersection support#14
LDGerrits wants to merge 1 commit intoSleitnick:mainfrom
LDGerrits:main

Conversation

@LDGerrits
Copy link

While observeTag is effective for single-state behaviors, complex interactions often require an intersection of multiple states (e.g., an object being both a "Chest" and "Hovered"). This change introduces observeTags, which accepts an array of tags and only initializes the observer when the instance possesses all specified tags. The behavior is automatically cleaned up if any single tag is removed, or if the instance leaves the specified ancestry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant