Commit graph

125 commits

Author SHA1 Message Date
Ukendio
207c9b5268 Swap remove in without 2024-07-28 14:31:47 +02:00
Ukendio
d5de1ad425 Self contained changetracker 2024-07-28 14:17:44 +02:00
Ukendio
18ead3ed19 Make it static 2024-07-28 12:33:38 +02:00
Marcus
49305f73dd
Add archetypes method (#89)
* Add method

* Remove unnecessary shadowed variable
2024-07-28 02:39:19 +02:00
Marcus
d46df8c0a0
Initial commit (#86) 2024-07-26 16:21:13 +02:00
Ukendio
2f0f817b08 Optimize remove 2024-07-26 16:15:12 +02:00
Ukendio
059a3f9bed Fix world:remove 2024-07-26 04:36:30 +02:00
Ukendio
65984b6c65 Remove indices 2024-07-26 03:03:00 +02:00
Marcus
0f8f9348f5
Fix column pointers invalidated by upvalues (#88)
* Initial commit

* Add types to world:has()
2024-07-26 02:55:36 +02:00
Marcus
76d1ff91c0
Add has function (#85) 2024-07-23 04:44:56 +02:00
Ukendio
02548f2ac0 Fix typo 2024-07-15 20:31:51 +02:00
Ukendio
459e670ce9 Change casing 2024-07-15 20:29:06 +02:00
Ukendio
1b6cdd4791 Should return noop 2024-07-14 08:34:50 +02:00
Ukendio
48cc4dc7d5 Properly type EmptyQuery 2024-07-14 08:30:20 +02:00
Ukendio
150afc46e4 Rename replace function 2024-07-14 07:30:13 +02:00
Ukendio
43a19f5328 FLAGS_ADD 2024-07-14 07:16:24 +02:00
Marcus
8a7b3de004
Revert mirror (#79) 2024-07-14 06:35:13 +02:00
Ukendio
85a970e9ff Less memory footprint 2024-07-14 05:38:44 +02:00
Marcus
45adef066d
Fixed regression in Without (#72)
* Return empty query when Without removes all archetypes

* Type replace callback as Any

* Add test with ChangeTracker
2024-07-13 04:32:31 +02:00
Ukendio
fb3b8a5f67 Extract logic from ensureComponentRecord 2024-07-08 23:31:13 +02:00
EncodedVenom
7d2cd6219b
Add world.clear to types (#68)
* Sync typescript types to 0.2.2

* semicolon

* Add world.clear to the types

* Add luau type for clear
2024-07-08 16:04:28 +02:00
EncodedVenom
6b8dde8fd3
Fix EmptyQuery to properly return an empty iterator (#70)
* Fix EmptyQuery to properly return an empty iterator

* Remove actualNoOperation and enforce style guide
2024-07-08 16:04:04 +02:00
Marcus
0fe23e151c
Add replace method to query (#46)
* Add replace function

* Add next method

* Remove tostring

* Fix EmptyQuery

* add replace method

* merge conflicts

* return self in without

* Make aliases relative

* Add test

* add to changelog
2024-07-07 04:53:17 +02:00
Marcus
c0e73273d1
Add backwards iteration (#61)
* Iterate backwards

* Should test for removing as well

* Add test

* Add faíling test

* Add to changelog
2024-07-06 16:36:00 +02:00
Marcus
6559c56d47
Initial commit (#63) 2024-07-06 16:21:44 +02:00
Renamed from lib/init.luau (Browse further)