public void onEntityDeathMonitor(EventEntityDeath evt)
        {
            if (!evt.getUnit().GetType().Equals(typeof(HumanEntity)))
            {
                if (BattleManager.EnemyCount <= 0 && BattleManager.isFighting)
                {
                    BattleManager.Reward();
                    BattleManager.isBattleOver = true;
                }
                if (BattleManager.EnemyCount > 0)
                {
                    BattleManager.EnemyCount--;
                }
            }
            else
            {
                HumanEntity bandit = (HumanEntity)evt.getUnit();

                if (PartyManager.draftees.Exists(x => x.uName == evt.getUnit().unitName))
                {

                    if (bandit.getProfession().getProfessionName() != "Bandit")
                    {
                        if (PartyManager.draftees.Find(x => x.uName == evt.getUnit().unitName).isEnlisted)
                        {
                            if (PartyManager.PartySize > 0)
                            {
                                PartyManager.PartySize--;
                            }
                        }
                        PartyManager.draftees.Remove(PartyManager.draftees.Find(x => x.uName == evt.getUnit().unitName));
                        if (BattleManager.isInTown)
                        {
                            PartyManager partyManager = new PartyManager();
                            partyManager.ManageParty(2);
                        }
                    }
                    else
                    {
                        evt.getUnit().Destroy();
                    }
                }
                else
                {
                    evt.getUnit().Destroy();
                }
            }

            if (MessengerManager.messengerEntity != null)
            {
                if (evt.getUnit().unitName == MessengerManager.messengerEntity.unitName)
                {
                    evt.getUnit().Destroy();
                }
            }
        }
        public void onGameLoad(EventGameLoad evt)
        {
            if (File == "")
            {
                File = worldManager.settlementName.ToString();
            }

            if (!AdventureMap.isMapCreated)
            {
                AManager<MapManager>.getInstance().CreateWorldMap();
                AdventureMap.isMapCreated = true;
            }

            if (BattleManager.isStartingFight)
            {
                TransitionScreen.CloseWindow();
                AManager<TimeManager>.getInstance().pause();
                Screen.lockCursor = false;
                Screen.showCursor = true;
                GUIManager.getInstance().startMenu = "";
                GUIManager.getInstance().inStartMenu = true;
                GUIManager.getInstance().inGame = false;
                BattleManager.isStartingFight = false;
            }

            if (PartyManager.draftees.Count <= 0)
            {
                PartyManager partyManager = new PartyManager();
                partyManager.ManageParty(0);
            }
        }