Example #1
0
 private void LoadNewMap()
 {
     QuestGiver.ClearQuests();
     BonusLifeTile.ClearBonuses();
     MonsterController.ClearMonsters();
     MapGenerator.GenerateMap();
     NeedRefresh?.Invoke();
 }
Example #2
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();
 }