@@ -17,26 +17,27 @@ public abstract class EcsRxApplication
17
17
{
18
18
public ISystemExecutor SystemExecutor { get ; }
19
19
public IEventSystem EventSystem { get ; }
20
- public IEntityCollectionManager EntityCollectionlManager { get ; }
20
+ public IEntityCollectionManager EntityCollectionManager { get ; }
21
21
22
22
protected EcsRxApplication ()
23
23
{
24
- // For sending events around
24
+ // For sending events around
25
25
EventSystem = new EventSystem (new MessageBroker ());
26
26
27
27
// For mapping component types to underlying indexes
28
28
var componentTypeAssigner = new DefaultComponentTypeAssigner ();
29
29
var allComponents = componentTypeAssigner .GenerateComponentLookups ();
30
30
31
+ var componentLookup = new ComponentTypeLookup (allComponents );
31
32
// For interacting with the component databases
32
33
var componentDatabase = new ComponentDatabase (componentLookup );
33
- var componentRepository = new ComponentRepository (componentLookup , componentDatabase );
34
+ var componentRepository = new ComponentRepository (componentLookup , componentDatabase );
34
35
35
36
// For creating entities, collections, observable groups and managing Ids
36
37
var entityFactory = new DefaultEntityFactory (new IdPool (), componentRepository );
37
38
var entityCollectionFactory = new DefaultEntityCollectionFactory (entityFactory );
38
39
var observableGroupFactory = new DefaultObservableObservableGroupFactory ();
39
- EntityCollectionManager = new EntityCollectionManager (poolFactory , observableGroupFactory );
40
+ EntityCollectionManager = new EntityCollectionManager (entityCollectionFactory , observableGroupFactory , componentLookup );
40
41
41
42
// All system handlers for the system types you want to support
42
43
var reactsToEntityHandler = new ReactToEntitySystemHandler (EntityCollectionManager );
0 commit comments