Sync to released Jecs 0.5.5-nightly.20250413T001101Z (#32)

Reviewed-on: #32
This commit is contained in:
marked 2025-04-13 02:11:20 +02:00
parent f41558cadc
commit 024bb62b3b
10 changed files with 121 additions and 179 deletions

View file

@ -1,77 +1,39 @@
*created e271v0
*created e272v0
*created e273v0
*created e274v0
*created e275v0
*created e276v0
*created e277v0
*created e278v0
*created e279v0
*created e280v0
|-alive--|
| e271v0 |
|--------|
| e272v0 |
|--------|
| e273v0 |
|--------|
| e274v0 |
|--------|
| e275v0 |
|--------|
| e276v0 |
|--------|
| e277v0 |
|--------|
| e278v0 |
|--------|
| e279v0 |
|--------|
| e280v0 |
|--------|
*deleted e270v0
*deleted e271v0
*deleted e272v0
*deleted e273v0
*deleted e274v0
*deleted e275v0
*deleted e274v1
*deleted e273v1
*deleted e272v1
*deleted e271v1
*deleted e270v1
----idempotent
1_2
1_2
7.1 us  1 kB│ delete children of entity
9.2 us  1 kB│ remove friends of entity
346 ns  0  B│ simple deletion of entity
the great reset
7.4 us  2 kB│ delete children of entity
9.5 us  1 kB│ remove friends of entity
352 ns  0  B│ simple deletion of entity
world:add()
PASS│ idempotent
PASS│ archetype move
world:children()
PASS│ 
#repro3
PASS│ should add the correct ModelBase for parts
PASS│ should add the correct ModelBase for parts
PASS│ 
world:clear()
PASS│ should remove its components
PASS│ remove cleared ID from entities
#adding a recycled target
PASS│ 
world:component()
PASS│ only components should have EcsComponent trait
PASS│ tag
#repro2
world:contains()
PASS│ 
PASS│ should not exist after delete
another
PASS│ 
world:delete()
PASS│ invoke OnRemove hooks
PASS│ delete recycled entity id used as component
PASS│ bug: Empty entity does not respect cleanup policy
PASS│ should allow deleting components
PASS│ delete entities using another Entity as component with Delete cleanup action
PASS│ delete children
PASS│ remove deleted ID from entities
PASS│ fast delete
PASS│ cycle
#repro
PASS│ 
archetype
PASS│ 
world:cleanup()
world:each()
PASS│ 
world:entity()
@ -81,16 +43,9 @@
PASS│ Recycling
PASS│ Recycling max generation
world:set()
PASS│ archetype move
PASS│ pairs
world:remove()
PASS│ should allow remove a component that doesn't exist on entity
world:add()
PASS│ idempotent
PASS│ archetype move
world:has()
PASS│ should find Tag on entity
PASS│ should return false when missing one tag
world:query()
PASS│ cached
@ -110,49 +65,32 @@
PASS│ should error when setting invalid pair
PASS│ should find target for ChildOf
PASS│ despawning while iterating
NONE│ iterator invalidation
SKIP│ adding
PASS│ spawning
PASS│ should not find any entities
PASS│ without
PASS│ world:query():without()
world:each
PASS│ 
world:remove()
PASS│ should allow remove a component that doesn't exist on entity
world:children
PASS│ 
world:clear()
PASS│ should remove its components
PASS│ remove cleared ID from entities
world:has()
PASS│ should find Tag on entity
PASS│ should return false when missing one tag
world:component()
PASS│ only components should have EcsComponent trait
PASS│ tag
world:delete
PASS│ invoke OnRemove hooks
PASS│ delete recycled entity id used as component
PASS│ bug: Empty entity does not respect cleanup policy
PASS│ should allow deleting components
PASS│ delete entities using another Entity as component with Delete cleanup action
PASS│ delete children
PASS│ remove deleted ID from entities
PASS│ fast delete
PASS│ cycle
world:set()
PASS│ archetype move
PASS│ pairs
world:target
PASS│ nth index
PASS│ infer index when unspecified
PASS│ loop until no target
world:contains
#adding a recycled target
PASS│ 
#repro2
PASS│ 
another
PASS│ 
#repro
PASS│ 
PASS│ should not exist after delete
Hooks
PASS│ OnAdd
@ -177,5 +115,5 @@
PASS│ #2
PASS│ #3
77/77 test cases passed in 29.411 ms.
68/68 test cases passed in 29.621 ms.
0 fails