Commit graph

9 commits

Author SHA1 Message Date
Ukendio
c9ebaec0be Remove print 2024-05-12 05:26:37 +02:00
Ukendio
2b0d55db83 Ensure entity exists 2024-05-12 04:58:59 +02:00
Ukendio
b89cd10b7b Implement lookups 2024-05-12 04:50:14 +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