Esempio n. 1
0
 //
 internal EntityManager(EntityDataManager dataManager, ArcheTypeManager archeTypeManager, ComponentBlockManager componentBlockManager)
 {
     _dataManager           = dataManager;
     _archeTypeManager      = archeTypeManager;
     _componentBlockManager = componentBlockManager;
     Capacity = 16;
 }
Esempio n. 2
0
 //
 public World()
 {
     _entityDataManager     = new EntityDataManager();
     _archeTypeManager      = new ArcheTypeManager();
     _componentBlockManager = new ComponentBlockManager(_entityDataManager);
     _entityManager         = new EntityManager(_entityDataManager, _archeTypeManager, _componentBlockManager);
 }
Esempio n. 3
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;
 }
Esempio n. 4
0
 internal ComponentBlockManager(EntityDataManager entityDataManager)
 {
     Assert.IsNotNull(entityDataManager);
     _entityDataManager = entityDataManager;
 }