public EntityQueryManager(ComponentJobSafetyManager *safetyManager)
 {
     m_JobSafetyManager        = safetyManager;
     m_GroupDataChunkAllocator = new ChunkAllocator();
     m_EntityGroupDataCache    = new NativeMultiHashMap <int, int>(1024, Allocator.Persistent);
     m_EntityGroupDatas        = new UnsafeEntityQueryDataPtrList(0, Allocator.Persistent);
 }
        public static EntityQueryManager *Create(ComponentDependencyManager *dependencyManager)
        {
            var queryManager = (EntityQueryManager *)UnsafeUtility.Malloc(sizeof(EntityQueryManager), 64, Allocator.Persistent);

            queryManager->m_DependencyManager       = dependencyManager;
            queryManager->m_GroupDataChunkAllocator = new ChunkAllocator();
            ref var groupCache = ref UnsafeUtilityEx.As <UntypedUnsafeHashMap, UnsafeMultiHashMap <int, int> >(ref queryManager->m_EntityGroupDataCacheUntyped);
Beispiel #3
0
 public EntityGroupManager(ComponentJobSafetyManager safetyManager)
 {
     m_JobSafetyManager        = safetyManager;
     m_GroupDataChunkAllocator = new ChunkAllocator();
 }