Continue improve archetype ecs

Updated Archetype to support add and remove entity
Added EntityManager
Added EntityCommandBuffer
This commit is contained in:
2025-12-03 20:40:19 +09:00
parent 63a70f1a74
commit 948fae4401
8 changed files with 614 additions and 124 deletions

View File

@@ -14,7 +14,7 @@ public unsafe class EntityQuery<T1, T2>
private List<ArchetypeCache> _cache = new();
public void AddMatchingArchetype(Archetype archetype)
internal void AddMatchingArchetype(Archetype archetype)
{
// We look up the offsets ONCE when the archetype is registered
int off1 = archetype.GetOffset(ComponentTypeID<T1>.value);