Esempio n. 1
0
        public static void Init(GameModule gameModule, Component <GameModule> component)
        {
            DependencyInjectionHelper.gameModule = gameModule;
            DependencyInjectionHelper.component  = component;

            addInjectors();
        }
Esempio n. 2
0
        public static void Init(MainWindow window)
        {
            if (component != null)
            {
                Console.WriteLine("Dependency injection already setup");
                return;
            }
            GameModule             gameModule    = new GameModule(window);
            Component <GameModule> gameComponent = new Component <GameModule>(gameModule);

            Init(gameModule, gameComponent);
        }