internal void Draw() { if (Debugger.IsAttached) { CurrentFrame.Draw(); } else { try { CurrentFrame.Draw(); } catch (Exception error) { game.ProcessReportError(error); } } }
//[CallOnThread("Sound")] bool DoSound() { if (Debugger.IsAttached) { Sound(); } else { try { Sound(); } catch (Exception error) { // Unblock anyone waiting for us, report error and die. State.SignalTerminate(); Game.ProcessReportError(error); return(false); } } return(true); }
private bool DoLoad() { if (Debugger.IsAttached) { Load(); } else { try { Load(); } catch (Exception error) { // Unblock anyone waiting for us, report error and die. cancellationTokenSource.Cancel(); processState.SignalTerminate(); game.ProcessReportError(error); return(false); } } return(true); }