kurokuukyo
f0ad62a222
Merge branch 'world_targets_docs' of https://github.com/kurokuukyo/jecs into world_targets_docs
2026-04-29 09:24:56 -04:00
kurokuukyo
dbcf1022d9
ensure doc comments are same across files
2026-04-29 09:24:53 -04:00
kuro
0254dd73be
Update src/jecs.d.ts
...
Co-authored-by: dai <contact@daimond113.com>
2026-04-21 14:36:33 -04:00
kurokuukyo
7824c1aa55
docs for world:targets
2026-04-21 14:23:11 -04:00
kuro
e2c56f5420
Implement world:targets() as a valid method ( #311 )
...
* Implement world:targets
* Proper indexing in ECS_PAIR_SECOND
* Unit tests
* pull idr.records index out of iterator
* move tests below world:target
* style
* better test names
* change nth to use idr.records and pull out variables from iter
* local NOOP fn
* pull NOOP out of fn
* redeclare component_index as ct_idx
* black magic (inlined most of the function calls in iterator - yes it still passes tests)
* remove redundant fn call (shoutout to nnullcolumn for spotting this)
* add test for rapid add/remove calls
* run secondary mixing step for all entities and not just the alive ones
* redundant check
* be a bit more explicit for checking if an entity is alive
2026-04-21 13:15:13 +02:00
Ukendio
19823453aa
Explicit error message for double disconnect
analysis / Run Luau Analyze (push) Has been cancelled
build-studio-docs / Build Studio Docs (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
2026-03-10 03:14:31 +01:00
Ukendio
7170dbf6a1
Throw error at structural changes within on_remove hooks
2026-03-10 03:11:43 +01:00
Ukendio
4d76e28425
emplace the iD
2026-03-05 22:26:41 +01:00
Ukendio
8ea8f1f235
Check that both elements of the pair are tags
2026-03-01 19:37:19 +01:00
Ukendio
f9764634e6
Ensure that world:exists uses the safe try_get_any
2026-02-20 04:42:13 +01:00
Ukendio
4236bd02fd
Prune on cascaded deletion
2026-02-19 22:14:49 +01:00
Ukendio
22dd91b111
Add types
2026-02-16 02:04:35 +01:00
Ukendio
30597ed389
Add query:fini and query:archetypes(override) and changes to OB
2026-02-16 01:58:29 +01:00
Ukendio
d4a7f1d86c
v0.10
2026-02-15 00:06:34 +01:00
Ukendio
fd124d682d
Use type functions for query
2026-01-30 01:47:31 +01:00
Christopher Buss
2c21c79510
Add ECS_ID and ECS_GENERATION types ( #298 )
2026-01-30 00:14:02 +01:00
Christopher Buss
c9b3362a9c
Add DEBUG parameter to world typings ( #297 )
2026-01-29 23:58:33 +01:00
Ukendio
c86ba1e264
Fix is_tag and types
2026-01-20 00:56:20 +01:00
Ukendio
3dab729df8
Add docs for the preregister functions
2026-01-03 17:33:47 +01:00
Ukendio
f463cc9229
Add some documentation to the exported functions
2026-01-03 17:27:36 +01:00
PepeElToro41
1e7d957a5b
Fix entities with pairs of non delete policies
...
* fix world_delete clearing archetype entities before proper cleanup
* make changes
2026-01-02 07:55:59 +01:00
Ukendio
64f8750f3c
Add missing delete parameter in types for OnRemove
2026-01-02 06:38:16 +01:00
Ukendio
7f3946736b
Fix desired id being overriden
2026-01-02 06:32:59 +01:00
Ukendio
74a97bc54e
Add types for DEBUG parameter
2025-12-28 12:37:13 +01:00
Ukendio
d5c9abc57f
Document delete flag in OnRemove hooks
2025-12-28 12:35:08 +01:00
Ukendio
e4b12f4a28
check cascaded deletion for structural changes within onremove hooks
2025-12-28 12:21:45 +01:00
Ukendio
5208aa7749
Fix tmp references
2025-12-28 11:41:45 +01:00
Ukendio
ef4d880b0a
Add DEBUG mode with special assertions
2025-12-28 11:08:51 +01:00
Ukendio
e4d0fb447d
Handle recursive race condition
2025-12-21 20:30:55 +01:00
Ukendio
aa63051db3
Optimize idr_r removal by 35%
2025-12-21 19:33:13 +01:00
Ukendio
3ebb2334da
Should be able to delete every archetype that is iterated
2025-12-21 19:08:55 +01:00
Ukendio
f543c06462
Fix invalidated archetype before invoking onremove hooks
2025-12-21 17:04:48 +01:00
Ukendio
4db44476a9
Only delete archetypes when completely invalidated
2025-12-19 07:10:12 +01:00
m10
df454c75a3
Add deleted flag to removed handler typings ( #288 )
...
* update types
* change "StatefulHook" to "HookWithData" and "StatelessHook" to "HookWithDeleted"
* Update deleted flag type
2025-12-16 22:33:48 +01:00
maeriil
fbc4f0f3aa
Add types for (Cached)Query.has ( #286 )
...
* ts type update
* changed to hard tabs
* reverted back to old formatting for some
* more fixes
* only keep query has
2025-12-16 22:33:48 +01:00
Ukendio
b3d3a2bcdd
Fix types
2025-12-16 22:30:05 +01:00
Ukendio
197a57b28b
Fix docs
2025-12-16 22:22:26 +01:00
Ukendio
d86dff4bfe
Cleanup repository
2025-11-30 08:13:31 +01:00
Ukendio
b7a5785dbb
Cleanup repository
2024-11-23 04:42:54 +01:00
Ukendio
dacec22efa
Stylua shenanigans
2024-11-23 00:49:10 +01:00
Ukendio
adf09d2412
Add trailing comma to type
2024-11-22 23:07:58 +01:00
Ukendio
1dd108401f
Merge Archetype with its node interface
2024-11-22 23:06:17 +01:00
Ukendio
59abdcbe6f
Fix type error on World.add in debug mode
2024-11-21 04:13:12 +01:00
Ukendio
166e572815
Add comma
2024-11-20 18:28:36 +01:00
Ukendio
ea7c118db6
Entity defaults to Tag
2024-11-16 19:16:51 +01:00
Ukendio
a5747a6145
Add newline
2024-11-16 18:05:45 +01:00
Ukendio
bacda3c2e8
Use ecs_pair_first
2024-11-16 18:05:17 +01:00
Ukendio
eb315067f5
Fast paths on entity_index_try_get for user facing api
2024-11-16 17:25:57 +01:00
Ukendio
0ab66f416d
Correct indentation on numbers
2024-11-16 17:12:12 +01:00
Ukendio
bab4065a1e
Merge branch 'main' of https://github.com/Ukendio/jecs
2024-11-16 17:11:33 +01:00