예제 #1
0
        private void ListenForOutput(IModConfig config)
        {
            var listener = new OutputListener(config);

            listener.OnOutput += Console.Write;
            listener.Start();
        }
예제 #2
0
파일: App.cs 프로젝트: misternebula/owml
 public App(IOwmlConfig owmlConfig, IModManifest owmlManifest, IModConsole writer, IModFinder modFinder,
            OutputListener listener, PathFinder pathFinder, OWPatcher owPatcher, VRPatcher vrPatcher)
 {
     _owmlConfig   = owmlConfig;
     _owmlManifest = owmlManifest;
     _writer       = writer;
     _modFinder    = modFinder;
     _listener     = listener;
     _pathFinder   = pathFinder;
     _owPatcher    = owPatcher;
     _vrPatcher    = vrPatcher;
 }
예제 #3
0
        static void Main(string[] args)
        {
            var owmlConfig     = GetOwmlConfig();
            var owmlManifest   = GetOwmlManifest();
            var writer         = OutputFactory.CreateOutput(owmlConfig, null, owmlManifest);
            var modFinder      = new ModFinder(owmlConfig, writer);
            var outputListener = new OutputListener(owmlConfig);
            var pathFinder     = new PathFinder(owmlConfig, writer);
            var owPatcher      = new OWPatcher(owmlConfig, writer);
            var vrPatcher      = new VRPatcher(owmlConfig, writer);
            var app            = new App(owmlConfig, owmlManifest, writer, modFinder, outputListener, pathFinder, owPatcher, vrPatcher);

            app.Run(args);
        }