forked from Misaki/GhostEngine
Add entities SerializationTest
This commit is contained in:
@@ -126,6 +126,10 @@ public unsafe partial struct EntityQuery
|
||||
<#= restrictions #>
|
||||
{
|
||||
var world = World.GetWorld(_worldID).GetValueOrThrow();
|
||||
if (world.JobScheduler == null)
|
||||
{
|
||||
throw new InvalidOperationException("The World has no JobScheduler assigned.");
|
||||
}
|
||||
|
||||
// 1. Flatten the World
|
||||
var chunks = new UnsafeList<IntPtr>(128, JobScheduler.TempAllocatorHandle);
|
||||
|
||||
Reference in New Issue
Block a user