index component record after archetype gets created
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run

This commit is contained in:
Ukendio 2025-07-18 16:53:32 +02:00
parent ca0689c92b
commit 78fe5338cf

View file

@ -2348,11 +2348,10 @@ local function world_new()
if not to then if not to then
to = find_archetype_with(world, id, src) to = find_archetype_with(world, id, src)
end
if not idr then if not idr then
idr = component_index[wc] idr = component_index[wc]
end end
end
edge[id] = to edge[id] = to
archetype_edges[(to :: Archetype).id][id] = src archetype_edges[(to :: Archetype).id][id] = src
@ -2455,11 +2454,10 @@ local function world_new()
if not to then if not to then
to = find_archetype_with(world, id, src) to = find_archetype_with(world, id, src)
end
if not idr then if not idr then
idr = component_index[wc] idr = component_index[wc]
end end
end
edge[id] = to edge[id] = to
archetype_edges[(to :: Archetype).id][id] = src archetype_edges[(to :: Archetype).id][id] = src
@ -3153,6 +3151,7 @@ return {
ECS_GENERATION_INC = ECS_GENERATION_INC, ECS_GENERATION_INC = ECS_GENERATION_INC,
ECS_GENERATION = ECS_GENERATION, ECS_GENERATION = ECS_GENERATION,
ECS_ID_IS_WILDCARD = ECS_ID_IS_WILDCARD, ECS_ID_IS_WILDCARD = ECS_ID_IS_WILDCARD,
ECS_ID_IS_EXCLUSIVE = ECS_ID_IS_EXCLUSIVE,
ECS_ID_DELETE = ECS_ID_DELETE, ECS_ID_DELETE = ECS_ID_DELETE,
ECS_META_RESET = ECS_META_RESET, ECS_META_RESET = ECS_META_RESET,
ECS_COMBINE = ECS_COMBINE, ECS_COMBINE = ECS_COMBINE,