Commit graph

7 commits

Author SHA1 Message Date
Marcus
2df5f3f18e
Add wildcards (#37)
* Fix export

* Initial commit

* Uncomment cases

* Rename case

* Add tests for wildcards

* Support wildcards in records

* Add tests for relation data

* Add shorthands

* Change casing of exports

* Change function signatures

* Improve inlining of ECS_PAIR

* Delete whitespace

* Create root archetype

* Add back tests

* Fix tests
2024-05-13 00:53:51 +02:00
Ukendio
87711eff19 Register components as entities 2024-05-10 20:35:41 +02:00
Marcus
d63de48546
Relationships (#31)
* Sparse set for entity records

* Swap dense indexes

* Improve inlining

* Add benchmarks

* Add tests for relations

* Add REST

* Merge upstream changes

* Add back symmetric and non idempotent add function

* Only swap when not last row

* Assert that the entity is alive

* Update example with relations
2024-05-10 17:59:57 +02:00
Marcus
91d3fcabc3
Add case for when component is not found in archetype (#25)
* Add case for when component is not found in archetype

* Check only destination archetype first

* Omit onNotifyAdd
2024-05-08 00:57:22 +02:00
Marcus
d5414f1bc4
Add iter method (#20) 2024-05-05 15:22:02 +02:00
Marcus
089c5d46a9
Fix component overriding when in disorder (#15)
* Fix component overriding when in disorder

* Add benchmarks

* Should use same data
2024-05-03 02:39:59 +02:00
Marcus
9c5a84e3af
Cache column indices instead of pointers (#13) 2024-05-01 14:41:10 +02:00