From b425150b0cf8a812c503531c9097ee41d4a9ae6f Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 4 Jul 2025 03:42:10 +0200 Subject: [PATCH] Add exclusive relations (#250) * Add exclusive relationship * Remove focus * Remove whitespace * Make ChildOf exclusive * Test exclusive relation perf * Inline into world:add * Inline into world:set * Fix benchmark of remove --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b880f62..6962031 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ ## Unreleased +### Added +- `jecs.Exclusive` trait for making exclusive relationships. + +### Changed +- `jecs.Child` to be an exclusive relationship, which means you can only have one `ChildOf` pair on an entity. + +## 0.7.2 +### Added +- `jecs.entity_index_try_get_fast` back as to not break the observer addon. + +### Fixed +- A linting problem with the types for `quer:with` and `query:without`. + + ## 0.7.0 ### Added