示例#1
0
 internal ComponentBlock(ArcheType *ptr, EntityDataManager entityDataManager)
 {
     Assert.IsTrue(ptr != null);
     Assert.IsNotNull(entityDataManager);
     ArcheType          = ptr;
     _entityDataManager = entityDataManager;
     _data             = new ChunkAllocator();
     _dataSize         = Util.AlignmentPow2(ArcheType->TotalSize, AlignmentSize);
     _countInChunk     = _data.CalcAlignedCapacity(AlignmentSize) / _dataSize;
     _countInTotal     = 0;
     _usedCountInChunk = -1;
     _usedCountInTotal = 0;
 }
示例#2
0
 internal ArcheTypeManager()
 {
     _buffer = new ChunkAllocator();
 }