public static void Configure() { LogManager.Initialize(new LogProvider()); LogManager.GetLog(nameof(GameConfigurator)).Info($"Starting game. Version {Assembly.GetExecutingAssembly().GetName().Version}"); var config = LoadConfiguration(); ConfigurationManager.InitializeConfiguration(config); ImagesStorage.Current.Load(); IoC.Configure(); DialogsManager.Initialize(new DialogsProvider(IoC.Container.Resolve <IApplicationController>())); ItemsGeneratorManager.Initialize(new ItemsGenerator( config.ItemGenerator, ImagesStorage.Current, new AncientSpellsProvider())); DungeonMapGenerator.Initialize(ImagesStorage.Current, Settings.Current.DebugWriteMapToFile); #if DEBUG PerformanceMeter.Initialize(@".\Performance.log"); #endif }