Merge conflicts

This commit is contained in:
Ukendio 2025-04-22 04:42:34 +02:00
commit efe9f0cc34
4 changed files with 22 additions and 14 deletions

View file

@ -8,17 +8,17 @@ A collection of third-party jecs addons made by the community. If you would like
A jecs debugger with a string-based query language and entity editing capabilities.
## [jecs_entity_visualiser](https://github.com/Ukendio/jecs/tree/main/addons/entity_visualiser)
## [jecs_entity_visualiser](https://github.com/Ukendio/jecs/blob/main/addons/entity_visualiser.luau)
A simple entity and component visualiser in the output
## [jecs_lifetime_tracker](https://github.com/Ukendio/jecs/tree/main/addons/lifetime_tracker)
## [jecs_lifetime_tracker](https://github.com/Ukendio/jecs/blob/main/addons/lifetime_tracker.luau)
A tool for inspecting entity lifetimes
# Helpers
## [jecs_observers](https://github.com/Ukendio/jecs/tree/main/addons/observers)
## [jecs_observers](https://github.com/Ukendio/jecs/blob/main/addons/observers.luau)
Observers for queries and signals for components
@ -41,4 +41,16 @@ Provides hooks and a scheduler that implements jabby and a topographical runtime
An agnostic scheduler inspired by Bevy and Flecs, with core features including phases, pipelines, run conditions, and startup systems.
Planck also provides plugins for Jabby, Matter Hooks, and more.
# Replication
## [feces](https://github.com/NeonD00m/feces)
A generalized replication system for jecs
# Input
## [Axis](https://github.com/NeonD00m/axis)
An agnostic, simple and versatile input library for ECS
# Observers

View file

@ -14,6 +14,10 @@ A (component) ID can be marked with `Tag´ in which the component will never con
Hooks are part of the "interface" of a component. You could consider hooks as the counterpart to OOP methods in ECS. They define the behavior of a component, but can only be invoked through mutations on the component data. You can only configure a single `OnAdd`, `OnRemove` and `OnSet` hook per component, just like you can only have a single constructor and destructor.
::: warning
Hooks, added to a component that has already been added to other entities/components, will not be called.
:::
## Examples
::: code-group

View file

@ -633,7 +633,6 @@ TEST("world:each()", function()
end
end)
FOCUS()
TEST("world:entity()", function()
do CASE "range"
local world = jecs.world()
@ -654,7 +653,6 @@ TEST("world:entity()", function()
end
do CASE "desired id"
local world = jecs.world()
world = lifetime_tracker_add(world, {})
local id = world:entity()
local e = world:entity(id + 5)
CHECK(e == id + 5)
@ -672,7 +670,6 @@ TEST("world:entity()", function()
world:delete(e3)
print("---------------------------")
local e3v1 = world:entity(275)
CHECK(not world:contains(275))
CHECK(jecs.ECS_GENERATION(e3v1) == 1)
@ -681,11 +678,7 @@ TEST("world:entity()", function()
CHECK(world:contains(e3v1))
-- world:print_entity_index()
print("--------begin")
world:entity(e3)
print("-----end")
world:print_entity_index()
world:entity(e3)
world:entity(275)

View file

@ -253,7 +253,6 @@ local function FOCUS()
end
local function FINISH(): number
local success = true
local total_cases = 0
local passed_cases = 0
local passed_focus_cases = 0