Skip to content

Commit

Permalink
Removed installers and using modules
Browse files Browse the repository at this point in the history
  • Loading branch information
grofit committed Sep 4, 2018
1 parent a18f821 commit 1bd2d72
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 103 deletions.
3 changes: 2 additions & 1 deletion Assets/EcsRx/Zenject/EcsRxApplicationBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ private void Awake()
protected void OnZenjectReady()
{
DependencyContainer = new ZenjectDependencyContainer(_sceneContext.Container);
_sceneContext.Container.Inject(this);
StartApplication();
}

public virtual void StartApplication()
{
RegisterModules();

_sceneContext.Container.Inject(this);
ApplicationStarting();
RegisterAllPluginDependencies();
SetupAllPluginSystems();
Expand Down
9 changes: 9 additions & 0 deletions Assets/Game/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Game.Components;
using Game.Configuration;
using Game.Events;
using Game.Installers;
using UniRx;
using UnityEngine;
using Zenject;
Expand All @@ -21,6 +22,14 @@ public class Application : EcsRxApplicationBehaviour
[Inject]
private GameConfiguration _gameConfiguration;

protected override void RegisterModules()
{
base.RegisterModules();
DependencyContainer.LoadModule<GameModule>();
DependencyContainer.LoadModule<SceneCollectionsModule>();
DependencyContainer.LoadModule<ComputedModule>();
}

protected override void ApplicationStarting()
{
this.BindAllSystemsWithinApplicationScope();
Expand Down
9 changes: 0 additions & 9 deletions Assets/Game/Installers.meta

This file was deleted.

19 changes: 0 additions & 19 deletions Assets/Game/Installers/ComputedInstaller.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Game/Installers/ComputedInstaller.cs.meta

This file was deleted.

13 changes: 0 additions & 13 deletions Assets/Game/Installers/GameInstaller.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Assets/Game/Installers/GameInstaller.cs.meta

This file was deleted.

34 changes: 0 additions & 34 deletions Assets/Game/Installers/SceneCollectionsInstaller.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Assets/Game/Installers/SceneCollectionsInstaller.cs.meta

This file was deleted.

Binary file modified Assets/Game/Scenes/game-scene.unity
Binary file not shown.

0 comments on commit 1bd2d72

Please sign in to comment.