MainBBWIWARG.cs 996 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Threading;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using bbiwarg.Graphics;
  9. using bbiwarg.InputProviders;
  10. namespace bbiwarg
  11. {
  12. class MainBBIWARG
  13. {
  14. static void Main(string[] args)
  15. {
  16. Console.SetWindowSize(Constants.ConsoleWidth, Constants.ConsoleHeight);
  17. InputProvider inputProvider;
  18. if (Constants.InputSource == InputType.Movie)
  19. inputProvider = new VideoInputProvider(Constants.InputMoviePath);
  20. else
  21. inputProvider = new InputProvider();
  22. inputProvider.start();
  23. InputHandler inputHandler = new InputHandler(inputProvider);
  24. OutputWindow outputWindow = new OutputWindow(inputProvider, inputHandler);
  25. outputWindow.Run(Constants.OutputUpdateRate, Constants.OutputRenderRate);
  26. inputProvider.stop();
  27. }
  28. }
  29. }