forked from Misaki/GhostEngine
Add managed entity and script component.
Added ManagedEntity and related methods in EntityManager; Added ScriptComponent to write game play logic in oop;
This commit is contained in:
@@ -61,7 +61,7 @@ public unsafe partial struct EntityQuery
|
||||
basePtrs[index] = pChunkData + offsets[index];
|
||||
}
|
||||
|
||||
for (var entityIndex = 0; entityIndex < chunk.Count; entityIndex++)
|
||||
for (var entityIndex = 0; entityIndex < chunk._count; entityIndex++)
|
||||
{
|
||||
if (!IsEntityValid(pChunkData, entityIndex, in archetype, in _mask))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user