public Engine(IFamilyFactory familyFactory = null) { Current = this; _familyFactory = familyFactory ?? new ComponentMatchingFamilyFactory(); _systems = new List <SystemPriorityPair>(); _families = new FamiliesContainer(); _entities = new List <IEntity>(); }
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(); }
public FamilySelector() { _familyFactory = new FamilyFactory <TFamily>(); }