示例#1
0
 public PipelineContext(Domain domain, bool isActive = true, string name = null)
 {
     TypeIndex      = Internals.EcpHelpers.ContextCount++;
     _entityManager = new EntityManager(domain.GetSupervisor(), TypeIndex);
     _isActive      = isActive;
     _domain        = domain;
     _containerPool = domain.GetContainerPool();
     _entityOwner   = new EntityOwner();
     _domain.AddPipelineContext(this, _entityOwner);
     AddContainers();
 }
示例#2
0
 public Domain()
 {
     _supervisor    = new EntitySupervisor();
     _containerPool = new ContainerPool();
 }