public void RegisterComponents(IComponentsRegistry componentsRegistry) { componentsRegistry.RegisterSceneConstructionScript <SetUpLevel>(); componentsRegistry.RegisterSystem <PipeSystem>(); componentsRegistry.RegisterSystem <GameOverSystem>(); componentsRegistry.AutofacContainerBuilder.RegisterType <EntityFactory>().As <IEntityFactory>(); }
public void RegisterComponents(IComponentsRegistry componentsRegistry) { componentsRegistry.RegisterSystem <SandboxSystem>(); componentsRegistry.RegisterSceneBehaviorFactory <SandboxSceneBehaviorFactory>(); componentsRegistry.RegisterComponentFactory <BoxMovementComponentFactory>(); componentsRegistry.RegisterComponentFactory <CloseGameOnEscapeKeyComponentFactory>(); componentsRegistry.RegisterComponentFactory <DieFromBoxComponentFactory>(); componentsRegistry.RegisterComponentFactory <DoMagicWithTextComponentFactory>(); componentsRegistry.RegisterComponentFactory <FollowEllipseComponentFactory>(); componentsRegistry.RegisterComponentFactory <MousePointerComponentFactory>(); componentsRegistry.RegisterComponentFactory <MusicControllerComponentFactory>(); componentsRegistry.RegisterComponentFactory <RotateComponentFactory>(); componentsRegistry.RegisterComponentFactory <SetTextForCurrentKeyComponentFactory>(); componentsRegistry.RegisterComponentFactory <SetTextForMouseInfoComponentFactory>(); componentsRegistry.RegisterComponentFactory <TopDownCameraForBoxComponentFactory>(); }
public void RegisterComponents(IComponentsRegistry componentsRegistry) { // Framework componentsRegistry.RegisterSceneBehaviorFactory <BenchmarkSceneBehaviorFactory>(); componentsRegistry.RegisterSystem <BenchmarkSystem>(); // Common componentsRegistry.AutofacContainerBuilder.RegisterType <EntityFactory>().As <IEntityFactory>().SingleInstance(); // Benchmarks componentsRegistry.RegisterSceneBehaviorFactory <EmptySceneSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <EntitiesWithNoComponentsSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <StaticSpritesSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <MovingSpritesSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <AnimatedSpritesSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <MovingCollidersSceneBehaviorFactory>(); componentsRegistry.RegisterSceneBehaviorFactory <EntitiesThroughputSceneBehaviorFactory>(); }