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

            addInjectors();
        }
예제 #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);
        }