/// <summary>
 /// Initializes a new instance of the GamePresenter.
 /// </summary>
 public GamePresenter()
 {
     //Subscribes on Ctrl+C event
     Console.CancelKeyPress += (s, e) =>
     {
         e.Cancel = true;
         PauseRequested?.Invoke();
     };
 }
Example #2
0
 public void Pause()
 {
     PauseRequested?.Invoke(this, EventArgs.Empty);
 }
Example #3
0
 /// <summary>
 /// Calls <see cref="PauseRequested"/> event.
 /// </summary>
 public void RequestPause()
 {
     this.Trace();
     PauseRequested?.Invoke();
 }
Example #4
0
 public void Pause()
 {
     IsPlaying = false;
     PauseRequested?.Invoke(this, EventArgs.Empty);
 }
Example #5
0
 public void Pause()
 {
     Toast("Paused");
     PauseRequested?.Invoke(this, EventArgs.Empty);
 }