private void HandleStop(GenericToolbarEntry toolbarEntry)
 {
     if (_loadedGame.GetPlaybackState() == LoadedGameState.Playing ||
         _loadedGame.GetPlaybackState() == LoadedGameState.Paused)
     {
         _loadedGame.RequestRestart();
         _windowManagement.ActivateWhere(x => x is WorldEditorWindow);
     }
 }
 private void HandlePause(GenericToolbarEntry toolbarEntry)
 {
     if (_loadedGame.GetPlaybackState() == LoadedGameState.Playing)
     {
         _loadedGame.SetPlaybackMode(false);
     }
     else if (_loadedGame.GetPlaybackState() == LoadedGameState.Paused)
     {
         _loadedGame.SetPlaybackMode(true);
     }
 }
 private void HandlePlay(GenericToolbarEntry toolbarEntry)
 {
     _loadedGame.SetPlaybackMode(true);
     _windowManagement.ActivateWhere(x => x is GameEditorWindow);
 }
 private void LaunchDebugGpu(GenericToolbarEntry toolbarEntry)
 {
     _loadedGame.RunInDebugGpu();
     _windowManagement.ActivateWhere(x => x is GameEditorWindow);
 }