Exemplo n.º 1
0
 private void TerminateThreads()
 {
     _rawInputListener?.StopListening();
     _controlSender?.Stop();
     InputListener?.StopListening();
     _serialPortHandler?.StopListening();
     _pipe?.Stop();
     _killGunListener = true;
 }
Exemplo n.º 2
0
 private void TerminateThreads()
 {
     _rawInputListener?.StopListening();
     _fastIo?.StopListening();
     _controlSender?.Stop();
     _inputListener?.StopListening();
     _serialPortHandler?.StopListening();
     _europa?.StopListening();
     KillGunListener = true;
 }
Exemplo n.º 3
0
 private void TerminateThreads()
 {
     _rawInputListener?.StopListening();
     _specialControl?.StopListening();
     _pokkenControlSender.StopListening();
     _gtiClub3ControlSender.StopListening();
     _inputListener?.StopListening();
     _serialPortHandler?.StopListening();
     _europa?.StopListening();
     KillGunListener = true;
 }
Exemplo n.º 4
0
 private void StopGameFunctionalities()
 {
     UnsubscribeListeners();
     isPlaying = false;
     try
     {
         inputListener.StopListening();
     }catch (ThreadAbortException)
     {
         // It is ok that has to happen.
     }
     GameThread = null;
     MonsterController.ClearMonsters();
     MonsterController.RefreshingEnabled = false;
     questService = null;
     movement.ClearDependencies();
     movement      = null;
     inputListener = null;
     GameFinished?.Invoke();
 }