Пример #1
0
 public Engine(IFamilyFactory familyFactory = null)
 {
     Current        = this;
     _familyFactory = familyFactory ?? new ComponentMatchingFamilyFactory();
     _systems       = new List <SystemPriorityPair>();
     _families      = new FamiliesContainer();
     _entities      = new List <IEntity>();
 }
Пример #2
0
 public Game(IFamilyFactory familyFactory)
 {
     this.familyFactory = familyFactory;
     this.entities      = new EntityList();
     this.simSystems    = new SystemList <SimSystemBase>();
     this.viewSystems   = new SystemList <ViewSystemBase>();
     this.families      = new List <IFamily>();
     this.nodeLists     = new List <INodeList>();
     this.RestartThreading();
 }
Пример #3
0
 public FamilySelector()
 {
     _familyFactory = new FamilyFactory <TFamily>();
 }