Esempio n. 1
0
        public void RegisterComponents(IComponentsRegistry componentsRegistry)
        {
            componentsRegistry.RegisterSceneConstructionScript <SetUpLevel>();
            componentsRegistry.RegisterSystem <PipeSystem>();
            componentsRegistry.RegisterSystem <GameOverSystem>();

            componentsRegistry.AutofacContainerBuilder.RegisterType <EntityFactory>().As <IEntityFactory>();
        }
Esempio n. 2
0
        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>();
        }
Esempio n. 3
0
        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>();
        }