Esempio n. 1
0
 void OnAreaChanged(Area area)
 {
     Wars.EndAllWarsForEliminatedFactions();
     Pins.RemoveAllPinsInUnclaimedAreas();
     Hud.GenerateMapOverlayImage();
     Hud.RefreshForAllPlayers();
 }
Esempio n. 2
0
        void OnFactionDisbanded(Faction faction)
        {
            Area[] areas = Instance.Areas.GetAllClaimedByFaction(faction);

            if (areas.Length > 0)
            {
                foreach (Area area in areas)
                {
                    PrintToChat(Messages.AreaClaimLostFactionDisbandedAnnouncement, area.FactionId, area.Id);
                }

                Areas.Unclaim(areas);
            }

            Wars.EndAllWarsForEliminatedFactions();
            Hud.RefreshForAllPlayers();
        }