Commit graph

129 commits

Author SHA1 Message Date
Marcus
aa853de818
Release 0.2.2 (#64)
* Bump package versions

* Fix typo
2024-07-07 04:59:44 +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
Ukendio
b73d7e12b7 Give aliases to jecs and testkit 2024-07-06 23:37:11 +02:00
Ukendio
60c6177815 Add luaurc 2024-07-06 23:30:14 +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
Ukendio
afc0c949f0 Bump wally version 2024-07-03 17:48:55 +02:00
Ukendio
de34636bb3 Add EcsComponent built-in component 2024-07-03 17:48:32 +02:00
EncodedVenom
f041d6fa74
Rename Matter -> Jecs in release workflow (#60)
* Rename Matter -> Jecs in release workflow

* Delete body from release message

This should theoretically prevent the overriding description bug that Ukendio mentioned on discord. Unsure since I haven't tested in another repo workflow yet.
2024-07-03 03:42:57 +02:00
Ukendio
bd2ed21fc3 Bump wally version 2024-07-03 02:47:29 +02:00
Ukendio
b4a1db871e Change test to use built in component 2024-07-03 02:46:54 +02:00
Ukendio
0324d3a33f ChildOf as built-in component 2024-07-03 02:23:16 +02:00
Ukendio
ebc916c7ef Remove redundant TODO 2024-07-03 02:13:35 +02:00
Ukendio
ec833464a5 Add parent method 2024-07-03 02:10:16 +02:00
Ukendio
b8f35ccb85 Change variable names and style 2024-07-03 02:10:11 +02:00
Marcus
5ff6a43750
Add clear (#59)
* Rename files to luau

* Rename remaining files

* Update bench.project.json for luau files

* Stress test insertion

* Add clear

* Add a few guards

* Use next() in World.__iter

* Add tests
2024-07-03 01:24:17 +02:00
Ukendio
0f67cb1c86 tuple isnt optional 2024-07-02 14:20:35 +02:00
Ukendio
0256c765a0 Drainless iterators 2024-07-02 12:53:33 +02:00
Ukendio
0ff2348a6e Uniform function declarations 2024-06-26 15:50:00 +02:00
Ukendio
6b4597ab96 Remove allocations per compatible archetype to optimize fragmented iterations 2024-06-26 11:51:49 +02:00
Ukendio
bc43ee336b Freeze the world inside export declaration 2024-06-25 01:44:27 +02:00
Marcus
c95bc2a582
Update benchmarks (#55)
* Update bench.project.json for luau files

* Stress test insertion
2024-06-24 19:02:27 +02:00
Marcus
6a507d35ea
Update README.md 2024-06-24 04:08:57 +02:00
Marcus
d4be467c6c
Rename files to luau (#54)
* Rename files to luau

* Rename remaining files
2024-06-24 03:20:43 +02:00
Kalrnlo
f852ca9a88
Cleanup functions and add missing types (#53)
* update

* Cleanup functions and add missing types

* Replace 0x10 with ECS_ID_FLAGS_MASK

* Fixes
2024-06-24 03:01:55 +02:00
Ukendio
1d7fe3d93a Separate query 2024-06-24 01:30:59 +02:00
Ukendio
eae51988a9 Update benchmarks image 2024-06-22 01:08:51 +02:00
Ukendio
5bd43bddd4 Add queryNext 2024-06-22 00:15:03 +02:00
EncodedVenom
ea12df96a4
Add Typescript Types (#51)
* Add package.json, tsconfig.json, and change gitignore

* Typescript Types

* Make World a single class, refactor of all query types

* Fix InferComponents types due to typo / misunderstanding

* Bump dependencies

* Fix get type to include undefined and add documentation

* Remove non-user facing types

* Rename PossiblyUndefinedPack -> Nullable

* Some changes to how EntityIndex is handled

* Consistent formatting

* Remove EntityIndex related type definitions

* Match API

* Doc comments
2024-06-15 22:03:04 +02:00
Ukendio
1344398ffe Fix types 2024-06-15 20:03:12 +02:00
Marcus
c3d745a88b
Create LICENSE 2024-06-11 21:06:27 +02:00
Ukendio
1553362014 Please the type solver overlord 2024-06-11 01:39:43 +02:00
Ukendio
a62cb370cf Everything are entities! 2024-06-09 23:58:01 +02:00
Ukendio
818dfdd216 Low foot print ids 2024-06-06 00:38:27 +02:00
Marcus
63f40a22c0
Add Types (#21)
* Add Types

* Fix return type of without

* implement types

* make types more specific

* reduce query to 10 generics

* Remove second type pack

---------

Co-authored-by: alice <166900055+alicesaidhi@users.noreply.github.com>
2024-06-05 23:34:24 +02:00
Ukendio
e6260541c3 Merge branch 'main' of https://github.com/Ukendio/jecs 2024-05-27 20:09:25 +02:00
Ukendio
05d61bd6da Fix doc 2024-05-27 20:09:22 +02:00
Marcus
1498a28c3f
Update world.md 2024-05-27 11:46:42 +02:00
Ukendio
94cc3ee8ea Fix links 2024-05-27 11:45:41 +02:00
Ukendio
3d689ebdd8 Fix links 2024-05-27 11:33:59 +02:00
Ukendio
c0594c7e75 Fix docs 2024-05-27 03:50:46 +02:00
Marcus
0567856a59
Add docs (#45)
* Initial commit

* Add section for standalone

* Fix docs

* Add pages to docs

* Remove redundant files
2024-05-27 03:39:20 +02:00
Marcus
f1ba9c4a55
Update README.md 2024-05-24 02:58:33 +02:00
Marcus
b8f7bed84c
Release (#44)
* Add release

* Release 0.1.0

* Move the benches to bench.project.json
2024-05-19 04:30:20 +02:00
Marcus
f55993180b
Release (#43)
* Add release

* Release 0.1.0
2024-05-19 04:17:22 +02:00
Ukendio
6c2f47bf70 Add todo 2024-05-17 01:05:40 +02:00
Ukendio
5533cd1c64 Remove random testkit call 2024-05-17 00:37:47 +02:00
Ukendio
659b858f5a Fix name function 2024-05-17 00:19:53 +02:00
Marcus
cf0683cf03
Add World:target (#39) 2024-05-17 00:17:53 +02:00
Ukendio
e86b4c7f4c Rename functions 2024-05-14 17:52:41 +02:00