Skip to content

Commit 097ec18

Browse files
authored
Update setup.md
1 parent 68c9ce8 commit 097ec18

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/setup.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,27 @@ public abstract class EcsRxApplication
1717
{
1818
public ISystemExecutor SystemExecutor { get; }
1919
public IEventSystem EventSystem { get; }
20-
public IEntityCollectionManager EntityCollectionlManager { get; }
20+
public IEntityCollectionManager EntityCollectionManager { get; }
2121

2222
protected EcsRxApplication()
2323
{
24-
// For sending events around
24+
// For sending events around
2525
EventSystem = new EventSystem(new MessageBroker());
2626

2727
// For mapping component types to underlying indexes
2828
var componentTypeAssigner = new DefaultComponentTypeAssigner();
2929
var allComponents = componentTypeAssigner.GenerateComponentLookups();
3030

31+
var componentLookup = new ComponentTypeLookup(allComponents);
3132
// For interacting with the component databases
3233
var componentDatabase = new ComponentDatabase(componentLookup);
33-
var componentRepository = new ComponentRepository(componentLookup, componentDatabase);
34+
var componentRepository = new ComponentRepository(componentLookup, componentDatabase);
3435

3536
// For creating entities, collections, observable groups and managing Ids
3637
var entityFactory = new DefaultEntityFactory(new IdPool(), componentRepository);
3738
var entityCollectionFactory = new DefaultEntityCollectionFactory(entityFactory);
3839
var observableGroupFactory = new DefaultObservableObservableGroupFactory();
39-
EntityCollectionManager = new EntityCollectionManager(poolFactory, observableGroupFactory);
40+
EntityCollectionManager = new EntityCollectionManager(entityCollectionFactory, observableGroupFactory, componentLookup);
4041

4142
// All system handlers for the system types you want to support
4243
var reactsToEntityHandler = new ReactToEntitySystemHandler(EntityCollectionManager);

0 commit comments

Comments
 (0)