public static void Init(GameModule gameModule, Component <GameModule> component) { DependencyInjectionHelper.gameModule = gameModule; DependencyInjectionHelper.component = component; addInjectors(); }
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); }